Skip to content

Conversation

@TNSelahle
Copy link
Member

@TNSelahle TNSelahle requested a review from ml86 November 27, 2025 08:00
@TNSelahle TNSelahle self-assigned this Dec 3, 2025
Comment on lines +812 to +813
case xs =>
fail(s"Expected two method refs, got ${xs.methodFullName.mkString("[", ",", "]")}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dont put this kind of error handling if it is just restating the previous case condition. It is just extra code without any use and a MatchException is totally fine if the condition does not hold.

@TNSelahle TNSelahle changed the title fix: remove superflous method ref [php2cpg] fix: remove superflous method ref Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants