Skip to content

Releases: shipmonk-rnd/dead-code-detector

0.14.1

18 Dec 11:05
Immutable release. Only release title and notes can be modified.
4fdc912

Choose a tag to compare

Fixes:

  • Fix infinite run for huge unused subtrees while groupping errors (#282)

0.14.0

25 Nov 10:47
Immutable release. Only release title and notes can be modified.
56f9f3f

Choose a tag to compare

New features:

  • Support PHP 8.5 features (#269)
  • Support phpbench entrypoints (#262, @simPod)
  • Support behat entrypoints (#267, @devbanana)
  • Support stream_wrapper_register magic (#266)

Improvements

  • All filepaths are now resolved relative to config file they reside (same as native PHPStan configs) (#219)
    • usageProviders.symfony.configDir
    • usageExcluders.tests.devPaths

Dependencies

  • phpstan/phpstan now requires ^2.1.23 (was ^2.1.12) (#254)

Breaking changes

  • All classes are final (#237)

0.13.5

13 Oct 13:47
Immutable release. Only release title and notes can be modified.
a12cdd0

Choose a tag to compare

Improvements:

  • Symfony & Doctrine (#258):
    • Support #[AsDoctrineListener]
    • Support #[AutoconfigureTag('doctrine.event_listener')]

0.13.4

09 Oct 17:14
Immutable release. Only release title and notes can be modified.
5acf474

Choose a tag to compare

Fixes:

  • Fix disabling dead methods detection (#257)

0.13.3

01 Sep 10:38
40ab442

Choose a tag to compare

Improvements:

  • Symfony:
    • Support #[AsTransitionListenerWorkflow] and other Event listener attributes (#248, by @S1ructure)
    • Support #[AsMessageHandler] attribute (#247, by @S1ructure)

0.13.2

14 Aug 10:54
806c397

Choose a tag to compare

Fixes

  • Property hooks partial support; fix crash & false positives (#244)

0.13.1

04 Aug 09:34
18a28eb

Choose a tag to compare

Improvements

  • Symfony: support anonymous services in DIC (#238)
  • Support @api over enums and enum cases (#240)
  • Debug output not to report mixed over mixed usages caused by ReflectionClass<object>::getMethods() etc. (#241)

0.13.0

21 Jul 15:05
d7cf348

Choose a tag to compare

New features:

  • Detect dead enum cases (#197); off by default, enable by:
parameters:
    shipmonkDeadCode:
        detect:
            deadEnumCases: true

Fixes

  • Fix false positive when @final class is inherited (#233)
  • Fix debug output for overridden built-in methods (#234)

Breaking changes:

  • ClassMemberRef is now generic, you may need to update phpdocs of those
  • ClassConstantRef constructor now requires TrinaryLogic $isEnumCase argument

Dependencies

  • phpstan/phpstan now requires ^2.1.12 (was ^2.1.9)

0.12.4

26 Jun 12:52
295d04a

Choose a tag to compare

Fixes:

  • Detect also overriden vendor constants (#225)

0.12.3

11 Jun 14:49
f3b909b

Choose a tag to compare

Fixes:

  • Fix false positive with interface parent (#221)