Skip to content

Update return type of spl_autoload_functions on PHP8.0+ #17897

Update return type of spl_autoload_functions on PHP8.0+

Update return type of spl_autoload_functions on PHP8.0+ #17897

Triggered via pull request September 26, 2024 18:06
Status Failure
Total duration 4m 7s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 22s
Generate baseline
Generate PHP baseline
1m 23s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

88 errors
Generate baseline
Process completed with exit code 1.
Generate PHP baseline: src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
Generate PHP baseline: src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
Generate PHP baseline
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan (8.3, ubuntu-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.3, ubuntu-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.3, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.3, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan (8.4, ubuntu-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.4, ubuntu-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.4, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.4, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.1): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan with result cache (8.1): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.1): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.1): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan with result cache (8.1): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan with result cache (8.1)
Process completed with exit code 2.
PHPStan with result cache (8.3): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan with result cache (8.3): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.3): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.3): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan with result cache (8.3): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan with result cache (8.2): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.2): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.2): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan with result cache (8.2): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan with result cache (8.4): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.4): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan with result cache (8.4): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan with result cache (8.4): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan (8.1, ubuntu-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.1, ubuntu-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.1, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.1, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan (8.2, ubuntu-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.2, ubuntu-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.2, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.2, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Command/CommandHelper.php was not matched in reported errors.
PHPStan (8.0, ubuntu-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.0, ubuntu-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.0, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path /home/runner/work/phpstan-src/phpstan-src/src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.0, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, windows-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php was not matched in reported errors.
PHPStan (8.4, windows-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.4, windows-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.4, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path D:\a\phpstan-src\phpstan-src\src\Reflection\BetterReflection\SourceLocator\AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.4, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php was not matched in reported errors.
PHPStan (8.1, windows-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.1, windows-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.1, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path D:\a\phpstan-src\phpstan-src\src\Reflection\BetterReflection\SourceLocator\AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.1, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php was not matched in reported errors.
PHPStan (8.3, windows-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.3, windows-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.3, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path D:\a\phpstan-src\phpstan-src\src\Reflection\BetterReflection\SourceLocator\AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.3, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php was not matched in reported errors.
PHPStan (8.2, windows-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.2, windows-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.2, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path D:\a\phpstan-src\phpstan-src\src\Reflection\BetterReflection\SourceLocator\AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.2, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Command/CommandHelper.php#L1
Ignored error pattern #^PHPDoc tag @var with type array\<callable\>\|false is not subtype of native type array\.$# in path D:\a\phpstan-src\phpstan-src\src\Command\CommandHelper.php was not matched in reported errors.
PHPStan (8.0, windows-latest): src/Command/CommandHelper.php#L168
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.0, windows-latest): src/Command/CommandHelper.php#L463
PHPDoc tag @var with type array<callable(): mixed>|false is not subtype of native type list<callable(string): void>.
PHPStan (8.0, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L1
Ignored error pattern #^Strict comparison using \=\=\= between array and false will always evaluate to false\.$# in path D:\a\phpstan-src\phpstan-src\src\Reflection\BetterReflection\SourceLocator\AutoloadSourceLocator.php was not matched in reported errors.
PHPStan (8.0, windows-latest): src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php#L338
Strict comparison using === between list<callable(string): void> and false will always evaluate to false.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.