Skip to content

- allow phpstan 2.0 #149

- allow phpstan 2.0

- allow phpstan 2.0 #149

Triggered via push December 6, 2024 07:50
Status Success
Total duration 38s
Artifacts

php.yml

on: push
Static code analysis
14s
Static code analysis
Matrix: test
Fit to window
Zoom out
Zoom in

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;