Enrico Höschler
Enrico Höschler
We have a list of possibly dangerous functions (like exec, eval, system, ...) and keep track which functions are used in the project. At the end we array_diff both lists...
we will somehow have to register to Name nodes and check if it already exists as a use statement via context->aliasmanager. context->aliasmanager is currently always null we have to inject...
[DEBUG] Unknown const fetch here: https://github.com/ovr/phpsa/blob/master/src/Analyzer/Pass/Expression/Casts.php#L20 maybe it has something to do with missing namespace support.
`Warning: Unused variable $fqcnParts in method getMetadata() in ./src/Analyzer/Pass/Statement/ConstantNaming.php [unused-variable]` `Warning: Unused variable $name in method getMetadata() in ./src/Analyzer/Pass/Statement/ConstantNaming.php [unused-variable]` `Warning: Unused variable $description in method getMetadata() in ./src/Analyzer/Pass/Statement/ConstantNaming.php [unused-variable]`...
- [ ] Loop which does not loop - [ ] Ternary operator simplification - [ ] Elvis operator can be used - [ ] Not optimal if conditions -...
`Notice: Static method defaultMetadata() does not exist in self scope in ./src/Analyzer/Pass/Expression/ArrayShortDefinition.php on 56 [undefined-scall]` So something is not right with trait static methods or the self scope existence check.
[DEBUG] Unknown how to pass symbol for assigning properties on this line for example: https://github.com/ovr/phpsa/blob/master/src/AliasManager.php#L26 need to add this to Expression\Assign compiler
- [ ] Undefined Callback - [ ] Undefined Namespace
- [ ] Unused private method - [ ] Unused private property - [ ] Unused use statement