Skip to content

Old phpstan/phpstan seemingly being installed on "Static Analysis (8.5, prefer-lowest, ubuntu-latest)" job creates a lot of deprecated logspam #1494

@reedy

Description

@reedy

Seen while playing with wikimedia#19

https://github.com/wikimedia/oauth2-server/actions/runs/20623941951/job/59231098679?pr=19

  - Locking phpstan/extension-installer (1.3.1)
  - Locking phpstan/phpdoc-parser (1.23.1)
  - Locking phpstan/phpstan (1.12.0)
  - Locking phpstan/phpstan-deprecation-rules (1.1.4)
  - Locking phpstan/phpstan-phpunit (1.3.15)
  - Locking phpstan/phpstan-strict-rules (1.5.2)

Which results in a lot of logspam:

PHP Deprecated:  Non-canonical cast (double) is deprecated, use the (float) cast instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 202
Deprecated: Non-canonical cast (double) is deprecated, use the (float) cast instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 202
Note: Using configuration file /home/runner/work/oauth2-server/oauth2-server/phpstan.neon.dist.
PHP Deprecated:  Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/hoa/compiler/Llk/Parser.php on line 146
Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/hoa/compiler/Llk/Parser.php on line 146
PHP Deprecated:  Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
Deprecated: Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
PHP Deprecated:  Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
Deprecated: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
PHP Deprecated:  Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
Deprecated: Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
PHP Deprecated:  Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
Deprecated: Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
PHP Deprecated:  Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
Deprecated: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
PHP Deprecated:  Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
Deprecated: Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
PHP Deprecated:  Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
Deprecated: Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
PHP Deprecated:  Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
Deprecated: Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56
PHP Deprecated:  Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
Deprecated: Method SplObjectStorage::detach() is deprecated since 8.5, use method SplObjectStorage::offsetUnset() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 64
PHP Deprecated:  Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
Deprecated: Method SplObjectStorage::contains() is deprecated since 8.5, use method SplObjectStorage::offsetExists() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 49
PHP Deprecated:  Method SplObjectStorage::attach() is deprecated since 8.5, use method SplObjectStorage::offsetSet() instead in phar:///home/runner/work/oauth2-server/oauth2-server/vendor/phpstan/phpstan/phpstan.phar/vendor/nette/di/src/DI/Resolver.php on line 56

The snipped above is obviously trimmed, as a lot more deprecated warnings appear

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions