NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2266 most downloaded on Packagist
Detect leaking classes
Latest stable
2.3.6
Last release 24 days ago
29 Oct 2026
Release timing varies
gaps range from 8 days to 7 months
Some releases are documented
notes for 17 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
104 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
Trim redundant blank lines in check command output
--skip-attribute name instead of silently ignoring it (#113)Skip Symfony EnvVarProcessorInterface by default
EnvVarProcessorInterface by default (#104)TransportFactoryInterface by default (#105)bin/console (#106)Align PHP and Go engines: static skip-type ancestry, use imports in blink
Your coding agent can read these notes before it upgrades. Set up the MCP server →
--blink parses trailing comma in closure use list (#103)AbstractExtension by default (#102)Treat constructor @param collection types as injected
Treat constructor @param collection types as injected (#99)
Classes collected into a constructor through a docblock, e.g. @param TypeMapperInterface[] $typeMappers, are now recognized as wired by the container through their interface, so they are no longer reported as unused. Supported forms are Foo[], array<Foo>, array<string, Foo>, iterable<Foo>, list<Foo>, and the non-empty-array/non-empty-list variants, resolved against use imports.
Applied to both the PHP engine and the Go (--blink) port.
Treat constructor @PARAM collection types as injected (#99)
Classes collected into a constructor through a docblock, e.g. @param TypeMapperInterface[] $typeMappers, are now recognized as wired by the container through their interface, so they are no longer reported as unused. Supported forms are Foo[], array<Foo>, array<string, Foo>, iterable<Foo>, list<Foo>, and the non-empty-array/non-empty-list variants, resolved against use imports.
Applied to both the PHP engine and the Go (--blink) port.
Skip interfaces implemented at least once
Skip interfaces implemented at least once (#98)
An interface implemented by at least one scanned class is resolved through that implementation, so it is no longer reported as unused. This removes the need for long manual --skip-type interface lists.
Applied to both the PHP engine and the Go (--blink) port.
Bump entropy to ^0.4.28 for non-spammy CI progress bar
Class Leak now runs on PHP 7.4 to 8.5 and ships with a lighter dependency footprint.
Class Leak now runs on PHP 7.4 to 8.5 and ships with a lighter dependency footprint.
Previously class-leak required PHP 8.4. The source is backported to 7.4 syntax and the parser targets the newest supported grammar, so you can install it on legacy projects and still detect modern PHP syntax (#91):
composer require tomasvotruba/class-leak --dev
Tested on PHP 7.4, 8.2 and 8.5.
<br>
symfony/finder is replaced with an in-house entropy FileFinder (#90), and nette/utils and webmozart/assert are dropped as direct dependencies (#88). Fewer transitive packages, fewer version conflicts.
<br>
check --help crash on array option default (#86)<br>
replace block for polyfills, no longer needed (#85)Nothing published for this version
Merge pull request #76 from TomasVotruba/tv-skip-implemented-interfac…
Merge pull request #76 from TomasVotruba/tv-skip-implemented-interfac…
Skip framework-registered classes: Symfony Messenger AsMessageHandler, DI Extension, and HttpKernelInterface implementations.
Skip framework-registered classes: Symfony Messenger AsMessageHandler, DI Extension, and HttpKernelInterface implementations.
Skip classes registered via attributes: Doctrine AsDoctrineListener and Twig AsTwigFunction, AsTwigFilter, AsTwigTest.
Skip classes registered via attributes: Doctrine AsDoctrineListener and Twig AsTwigFunction, AsTwigFilter, AsTwigTest.
Class Leak now bundles the unused-public PHPStan extension - detect unused public methods, properties and constants across your code and templates.
Class Leak now bundles the unused-public PHPStan extension - detect unused public methods, properties and constants across your code and templates.
Previously a separate package, it now ships with class-leak so you can find both leaking classes and unused public elements from a single dependency.
Enable the extension in your phpstan.neon:
includes:
- vendor/tomasvotruba/class-leak/config/unused-public-extension.neon
parameters:
unused_public:
methods: true
properties: true
constants: true
Extra options:
methods: 2.5 - allow up to 2.5 % of public methods as unused, alert abovelocal_methods: true - report local-only calls that should be private/protectedtemplate_paths: [templates] - skip methods used only in TWIG/Blade templatesMark intentional public API with @api on the class or element to skip it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
release PHP 7.2 downgraded
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.