Jan Nedbal
Jan Nedbal
This is now possible to do via AST-based extension point: `MemberUsageProvider::getUsages(): list` ([since 0.7.0](https://github.com/shipmonk-rnd/dead-code-detector/releases/tag/0.7.0))
The easiest way is to mark serialized objects by some interface/attribute/namespace and use that in custom `EntrypointProvider`. If all your classes already have `SerializedName` or `SerializedPath` in its props, you...
I believe we need [something like this](https://github.com/shipmonk-rnd/dead-code-detector/issues/91#issuecomment-2351020649) to properly support those kind of magic calls.
[Since 0.7.0](https://github.com/shipmonk-rnd/dead-code-detector/releases/tag/0.7.0), this can be easily implemented ([as shown in simple readme example](https://github.com/shipmonk-rnd/dead-code-detector?tab=readme-ov-file#ast-based-customization)). But, I'm not sure if we can do that in a generic way (within this repository), because...
I believe this now has pretty nice solution and is even mentioned in readme.
> It compiles Twig templates to PHP and then cleans them up. It then executes PHPStan. If your "methods called in twig" can be exported to some json, then it...
Fixed in [1.8.4](https://github.com/shipmonk-rnd/composer-dependency-analyser/releases/tag/1.8.4)
Currently, the analysis relies solely on used symbols in your codebase. PDO class [belongs to ext-pdo](https://3v4l.org/NB6hg). Looks like no `ext-pdo_xxx` has any dedicated symbols, so those will probably always be...
> Looks like no ext-pdo_xxx has any dedicated symbols Hm, that is no longer true since PHP 8.4: - https://github.com/php/php-src/blob/bd77462/ext/pdo_mysql/pdo_mysql.stub.php - https://github.com/php/php-src/blob/bd77462/ext/pdo_sqlite/pdo_sqlite.stub.php
It is not autoloadable, thus is reported.