Releases: shipmonk-rnd/dead-code-detector
Releases · shipmonk-rnd/dead-code-detector
0.5.1
0.5.0
0.4.0
Major changes:
- Dead cycles detection (#99)
- Also, all transitively dead methods are reported within the first run:
------ ------------------------------------------------------------------------
Line src/App/Facade/UserFacade.php
------ ------------------------------------------------------------------------
26 Unused App\Facade\UserFacade::updateUserAddress
🪪 shipmonk.deadMethod
💡 Thus App\Entity\User::updateAddress is transitively also unused
💡 Thus App\Entity\Address::setPostalCode is transitively also unused
💡 Thus App\Entity\Address::setCountry is transitively also unused
💡 Thus App\Entity\Address::setStreet is transitively also unused
New features:
- phpunit: support data providers in children classes (#97)
- symfony: support
#[AsCommand]
,#[AsController]
, Bundle children (#89) - doctrine: support EntityRepository constructor (#90)
Fixes:
- vendor: properly detect vendor-originating methods (#101)
0.3.0
0.2.1
0.2.0
New features:
- Autodetect library magic calls (#31, #38, #40, #51):
symfony
: DIC constructors, events, routes, ...nette
: render, action, handle, inject, smart object, ...phpunit
: test methodsdoctrine
: eventsphpstan
: DIC constructors- Also, any overridden method that originates in
vendor
is no longer reported
- Dead constructors detection! (#39)
- Support class-string calls like
$classString::method()
(#45) - Support array callbacks like
[$this, 'method']
(#42) - Support nullsafe call chain like
$object?->first()::second()
(#46) - Support dynamic method calls like
$object->$method()
(#52)
Improvements:
- Improve single process post-analysis runtime by 50% (#47)
- Proper hierarchy call detection (#48, #54)
Dependencies:
- requires
phpstan/phpstan 1.11.0
(was1.10.30
)