mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
cs: Switch to a stricter way of coding - this might break in a lot of places.
This commit is contained in:
@@ -778,11 +778,11 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
$dateA = $a->getOpeningDate();
|
||||
$dateB = $b->getOpeningDate();
|
||||
|
||||
if ($dateA == $dateB) {
|
||||
if ($dateA === $dateB) {
|
||||
$dateEA = $a->getClosingDate();
|
||||
$dateEB = $b->getClosingDate();
|
||||
|
||||
if ($dateEA == $dateEB) {
|
||||
if ($dateEA === $dateEB) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1360,7 +1360,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
foreach ($this->addresses as $ad) {
|
||||
$validDate = $ad->getValidFrom()->format('Y-m-d');
|
||||
|
||||
if (in_array($validDate, $validYMDDates)) {
|
||||
if (in_array($validDate, $validYMDDates, true)) {
|
||||
return true;
|
||||
}
|
||||
$validYMDDates[] = $validDate;
|
||||
|
Reference in New Issue
Block a user