Enrico Höschler

Results 19 issues of 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...

analyzer

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...

analyzer

[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.

help wanted
compiler

`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]`...

bug

- [ ] Loop which does not loop - [ ] Ternary operator simplification - [ ] Elvis operator can be used - [ ] Not optimal if conditions -...

control flow

`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.

feature request

[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

help wanted
compiler

- [ ] Undefined Callback - [ ] Undefined Namespace

help wanted
analyzer

- [ ] Unused private method - [ ] Unused private property - [ ] Unused use statement

help wanted
analyzer