Skip to content

Update phpstan/phpstan requirement from ^1.6 to ^1.6 || ^2.0 #135

Update phpstan/phpstan requirement from ^1.6 to ^1.6 || ^2.0

Update phpstan/phpstan requirement from ^1.6 to ^1.6 || ^2.0 #135

Triggered via pull request November 11, 2024 13:22
Status Failure
Total duration 27s
Artifacts

php.yml

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

Annotations

2 errors and 5 warnings
Static code analysis: src/OsmStringToOpeningHoursConverter.php#L97
Instanceof between Ujamii\OsmOpeningHours\Filters\Filter and Ujamii\OsmOpeningHours\Filters\Filter will always evaluate to true.
Static code analysis
Process completed with exit code 1.
Static code analysis
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, shivammathur/[email protected], actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests on PHP 8.1
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, shivammathur/[email protected], actions/[email protected], codecov/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, shivammathur/[email protected], actions/[email protected], codecov/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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;