chore: Convert some parts of Date validator to php8 syntax and add some tests to check userland retrocompatibility. #520
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
10s
Matrix: ci / QA Checks
Annotations
4 errors
ci / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...:
test/DateTest.php#L12
Use statements should be sorted alphabetically. The first wrong one is LaminasTest\Validator\TestAsset\CustomDate.
|
InvalidArgument:
test/DateTest.php#L203
test/DateTest.php:203:57: InvalidArgument: Argument 1 of Laminas\Validator\Date::isValid expects DateTimeInterface|array<array-key, mixed>|numeric|string, but stdClass provided (see https://psalm.dev/004)
|
InvalidArgument:
test/DateTest.php#L212
test/DateTest.php:212:57: InvalidArgument: Argument 1 of LaminasTest\Validator\TestAsset\CustomDate::isValid expects LaminasTest\Validator\TestAsset\DateTimeInterface|array<array-key, mixed>|numeric|string, but stdClass provided (see https://psalm.dev/004)
|
UnusedBaselineEntry:
src/Date.php#L1
src/Date.php:0:0: UnusedBaselineEntry: Baseline for issue "PossiblyUndefinedVariable" has 1 extra entry. (see https://psalm.dev/316)
|