NoUselessValueFunctionCallsRule
class NoUselessValueFunctionCallsRule implements Rule
Upstream matches the written name and takes the first argument as the value, so an
unpacked list or a reordered named argument was misread. Its fix dropped the evaluation
of the other arguments, and took the value from the analyzed tree instead of the fixer's
copy of the call, which broke the fixed file for values such as new Foo().
Methods
__construct(ReflectionProvider $reflectionProvider)
Create a new rule instance.
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Report value() calls whose value is never a Closure.
Details
at line 37
__construct(ReflectionProvider $reflectionProvider)
Create a new rule instance.
at line 44
string
getNodeType()
Get the node type the rule checks.
at line 54
array
processNode(Node $node, Scope $scope)
Report value() calls whose value is never a Closure.