phpstan-deprecation-rules icon indicating copy to clipboard operation
phpstan-deprecation-rules copied to clipboard

PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.

Results 10 phpstan-deprecation-rules issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [slevomat/coding-standard](https://togithub.com/slevomat/coding-standard) | require-dev | major | `^7.0` -> `^8.0` | ---...

Hi, I have problem with depracation rules in GitLab CI. I have following code ```php

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Awaiting Schedule These updates are awaiting their schedule. Click on a checkbox to...

It would be useful to allow skipping analysis of `@legacy` annotated PHPUnit test methods test in PHPUnit. Drupal runs deprecation tests via PHPUnit and the Symfony's PHPUnit bridge. Current policy...

A common pattern is to use `if/else` statements for backward compatibility with deprecated methods to provide support between versions before the deprecation was introduced and to provide a fix for...

Running the issue-cron on forks is a waste of resources

with this change phpstan is able to detect cases, where object values are used in `echo` statements and implicitly call a magic and deprecated `__toString` method. In case this new...

code https://github.com/atk4/data/blob/bb1c18f5dc583fca7dd372f98a0172fe66663057/src/Persistence/Sql/Postgresql/PlatformTrait.php#L115 ci https://github.com/atk4/data/runs/4342242942?check_suite_focus=true#step:11:16 ``` ------ ---------------------------------------------------------------------------------- Line src/Persistence/Sql/Postgresql/PlatformTrait.php (in context of anonymous class) ------ ---------------------------------------------------------------------------------- 115 Call to method getCreateTableSQL() of deprecated class Doctrine\DBAL\Platforms\AbstractPlatform: Use {@link PostgreSQLPlatform} instead. ------...

Follow up from https://github.com/phpstan/phpstan-src/pull/589. It'd be great to have a rule that caught usage of deprecated case-insensitive constants when analyzing with PHP 7.3 and 7.4.

phpstorm-stubs sometimes mark properties and constants as deprecated, but PHP reflection doesn't have methods to surface that information. Fortunately BetterReflection can surface that, although we might have to check `method_exists`...