Filippo Tessarotto
Filippo Tessarotto
I think we are going a bit off topic, by the way: 1. Symplify/CodingStandard takes `'Class'` string, asserts that is a real class with `*_exists()` functions or with a regex,...
> Would you be able to put that into PR Fixer? No because, as said, a Fixer must be content-unaware, but this type of check needs to be content-aware.
Yes, we could re-use a lot of PHP-CS-Fixer code in a new PHP-CS-Fixer+PHPUnit test component/plugin, in order to have checks/sniffs that are content-aware, because test suites are by definition content-aware.
There is something we can do. 1. If PHP-CS-Fixer is installed by the `composer.json` of the project, then `vendor/bin/php-cs-fixer` binary loads the project autoload.php, and so PHP-CS-Fixer becomes content-aware 1....
@Jean85 yup, this can be a solution, making the `vendor/autoload.php` option path mandatory for this Fixer. Reminder: if we are going to do so, after requiring the autoload it should...
> Including the autoload from composer can cause problems when there a conflicts with classes already loaded/defined by the tool itself (especially when different versions are used). A better solution...
Other two points came to my mind: 1. Alongside `ComposerAutoloaderInit` and `composerRequire` there also is `ComposerStaticInit` but has the exact same implication, so no issue 1. If instead of being...
*UPDATE* The [autoload files](https://getcomposer.org/doc/04-schema.md#files) is not an issue since composer v1 due to this check: https://github.com/composer/composer/blob/1.5.1/src/Composer/Autoload/AutoloadGenerator.php#L714 In the next days I would like to commit my idea: @keradus your `FEAT_php55_class`...
> Must not contain `debug_backtrace()` usage Why? How could a code calling `debug_backtrace()` be affected by this change? I mean affected runtime; the output would obviously be different, but I...
> > Must not contain non-static closures > > Must run before StaticLambdaFixer > > Wouldn't running after static lambda relax the first requirement? Heh, that's tricky, it should run...