Skip to content

Conversation

@simPod
Copy link
Contributor

@simPod simPod commented Jun 26, 2022

This contains code that can reproduce crash in

TypeError: SlevomatCodingStandard\Sniffs\Functions\UnusedInheritedVariablePassedToClosureSniff::checkVariableUsage(): Argument #6 ($scopeOwnerPointer) must be of type int, null given, called in /home/runner/work/slevomat-coding-standard/slevomat-coding-standard/SlevomatCodingStandard/Sniffs/Functions/UnusedInheritedVariablePassedToClosureSniff.php on line 64

@kukulich
Copy link
Contributor

kukulich commented Jul 7, 2022

@simPod Is it really valid PHP code? https://3v4l.org/18MjG

It looks you use use after function with name.

@simPod
Copy link
Contributor Author

simPod commented Jul 7, 2022

I see. I trusted IDE syntax validation. Guess you're right.

@simPod simPod closed this Jul 7, 2022
@simPod simPod deleted the repro branch July 7, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants