This change prevents an edge-case false negative where a parent::method() function call statement ended by a PHP close tag without any "function content" of note after it, would not be reported as a useless overriding method.
Includes unit tests.
Suggested changelog entry
Generic.CodeAnalysis.UselessOverridingMethod: prevent edge case false negative when the call to the parent method would end on a PHP close tag.
Related issues/external references
Related to #552
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
Description
This change prevents an edge-case false negative where a
parent::method()
function call statement ended by a PHP close tag without any "function content" of note after it, would not be reported as a useless overriding method.Includes unit tests.
Suggested changelog entry
Generic.CodeAnalysis.UselessOverridingMethod: prevent edge case false negative when the call to the parent method would end on a PHP close tag.
Related issues/external references
Related to #552
Types of changes