- allow phpstan 2.0 #149
php.yml
on: push
Static code analysis
14s
Matrix: test
Annotations
5 warnings
Static code analysis
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests on PHP 8.1
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests on PHP 8.1:
src/OsmStringToOpeningHoursConverter.php#L203
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$startDay = (int) $dayStart;
$endDay = empty($dayEnd) ? $dayStart : (int) $dayEnd;
for ($i = $startDay; $i <= $endDay; $i++) {
- $hoursValue = $openingHours ? [$openingHours] : [];
+ $hoursValue = $openingHours ? [] : [];
$daysArray[self::MONTHS[$monthName] . '-' . sprintf('%02d', $i)] = $hoursValue;
}
return $daysArray;
|
Tests on PHP 8.0
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests on PHP 8.0:
src/OsmStringToOpeningHoursConverter.php#L203
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$startDay = (int) $dayStart;
$endDay = empty($dayEnd) ? $dayStart : (int) $dayEnd;
for ($i = $startDay; $i <= $endDay; $i++) {
- $hoursValue = $openingHours ? [$openingHours] : [];
+ $hoursValue = $openingHours ? [] : [];
$daysArray[self::MONTHS[$monthName] . '-' . sprintf('%02d', $i)] = $hoursValue;
}
return $daysArray;
|