Issue #3574741: Fix loss of deprecated class extension detection with PHPStan 2.x

In phpstan-deprecation-rules 2.x, the class.extendsDeprecatedClass check moved to the RestrictedClassNameUsageExtension mechanism. With PHPStan 2.x, this mechanism is only activated when a level is explicitly set. Without a level, it silently skips the check. Adding level: 0 restores detection of deprecated class extensions with no false positives.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Related to #3574741

Merge request reports

Loading