Skip to content

[QA] added phpstan dist config #7

[QA] added phpstan dist config

[QA] added phpstan dist config #7

Triggered via pull request March 21, 2024 09:15
Status Failure
Total duration 37s
Artifacts

static-analysis.yml

on: pull_request
Static Analysis with PHPStan
28s
Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Static Analysis with PHPStan: lib/cache/sfAPCuCache.class.php#L1
Ignored error pattern #^Method sfAPCuCache\:\:clean\(\) should return bool but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/cache/sfAPCuCache.class.php was not matched in reported errors.
Static Analysis with PHPStan: lib/cache/sfAPCuCache.class.php#L1
Ignored error pattern #^Method sfAPCuCache\:\:removePattern\(\) should return bool but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/cache/sfAPCuCache.class.php was not matched in reported errors.
Static Analysis with PHPStan: lib/cache/sfFileCache.class.php#L1
Ignored error pattern #^Method sfFileCache\:\:removePattern\(\) should return bool but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/cache/sfFileCache.class.php was not matched in reported errors.
Static Analysis with PHPStan: lib/cache/sfMemcacheCache.class.php#L1
Ignored error pattern #^Method sfMemcacheCache\:\:clean\(\) should return bool but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/cache/sfMemcacheCache.class.php was not matched in reported errors.
Static Analysis with PHPStan: lib/cache/sfMemcacheCache.class.php#L1
Ignored error pattern #^Method sfMemcacheCache\:\:removePattern\(\) should return bool but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/cache/sfMemcacheCache.class.php was not matched in reported errors.
Static Analysis with PHPStan: lib/plugin/sfPearDownloader.class.php#L18
Class sfPearDownloader extends unknown class PEAR_Downloader.
Static Analysis with PHPStan: lib/plugin/sfPearDownloader.class.php#L28
sfPearDownloader::downloadHttp() calls parent::downloadHttp() but sfPearDownloader does not extend any class.
Static Analysis with PHPStan: lib/plugins/sfDoctrinePlugin/lib/mailer/Swift_DoctrineSpool.class.php#L72
Parameter #1 $message (Swift_Mime_Message) of method Swift_DoctrineSpool::queueMessage() is not contravariant with parameter #1 $message (Swift_Mime_SimpleMessage) of method Swift_Spool::queueMessage().
Static Analysis with PHPStan: lib/plugins/sfDoctrinePlugin/lib/mailer/Swift_DoctrineSpool.class.php#L72
Parameter $message of method Swift_DoctrineSpool::queueMessage() has invalid type Swift_Mime_Message.
Static Analysis with PHPStan: lib/task/app/sfAppRoutesTask.class.php#L1
Ignored error pattern #^Method sfAppRoutesTask\:\:execute\(\) should return int but return statement is missing\.$# in path /home/runner/work/symfony1/symfony1/lib/task/app/sfAppRoutesTask.class.php was not matched in reported errors.
Static Analysis with PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.