Skip to content

Add phpstan action

Add phpstan action #3

Triggered via push January 26, 2025 21:43
Status Failure
Total duration 39s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 1 warning
phpstan: Classes/Command/AbstractIndexCommand.php#L108
Call to an undefined method EWW\Dpf\Domain\Repository\DocumentTypeRepository::findOneByName().
phpstan: Classes/Command/AbstractIndexCommand.php#L130
Unreachable statement - code above always terminates.
phpstan: Classes/Command/IndexByDatabase.php#L101
Method EWW\Dpf\Command\IndexByDatabase::execute() should return int but returns true.
phpstan: Classes/Command/IndexByDatabase.php#L110
Method EWW\Dpf\Command\IndexByDatabase::execute() should return int but returns false.
phpstan: Classes/Command/IndexByFile.php#L128
PHPDoc tag @param references unknown parameter: $file
phpstan: Classes/Command/IndexByFile.php#L148
PHPDoc tag @param has invalid value (string URI to METS/MODS file to index): Unexpected token "URI", expected variable at offset 71 on line 4
phpstan: Classes/Command/IndexByFile.php#L150
PHPDoc tag @param has invalid value (string|null Credentials string as "user:password"): Unexpected token "Credentials", expected variable at offset 194 on line 6
phpstan: Classes/Configuration/ClientConfigurationManager.php#L65
Loose comparison using == between 'BE' and 'FE' will always evaluate to false.
phpstan: Classes/Configuration/ClientConfigurationManager.php#L65
Result of && is always false.
phpstan: Classes/Configuration/ClientConfigurationManager.php#L124
PHPDoc tag @var above a method has no effect.
phpstan
CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
phpstan
Path does not exist: phpstan.sarif
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636