Skip to content

fix: Correct the Composer autoload #708

fix: Correct the Composer autoload

fix: Correct the Composer autoload #708

Triggered via pull request October 31, 2023 23:12
Status Failure
Total duration 58s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
PHPStan: src/Autoload/ComposerFileHasher.php#L48
Method Humbug\PhpScoper\Autoload\ComposerFileHasher::generateHashes() should return array<string> but returns array<string|null>.
PHPStan: src/Autoload/ComposerFileHasher.php#L57
Method Humbug\PhpScoper\Autoload\ComposerFileHasher::generateHash() never returns null so it can be removed from the return type.
PHPStan: tests/Autoload/AutoloadDumperTest.php#L37
Static method KevinGH\Box\Composer\AutoloadDumper::generateAutoloadStatements() invoked with 3 parameters, 2 required.
PHPStan: tests/Autoload/AutoloadDumperTest.php#L39
Parameter #2 $autoloadContents of static method KevinGH\Box\Composer\AutoloadDumper::generateAutoloadStatements() expects string, array given.
PHPStan
Process completed with exit code 2.
Lint Status
Process completed with exit code 1.