Skip to content

Commit 52c9cf8

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/UselessOverridingMethod: fix syntax errors in the documentation
This commit fixes two syntax errors in the PHP code examples in the sniff documentation. Previously, the provided code would cause the following PHP error: ``` PHP Fatal error: Cannot use "parent" when current class scope has no parent ```
1 parent cd54d60 commit 52c9cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<code_comparison>
88
<code title="Valid: A method that extends functionality on a parent method.">
99
<![CDATA[
10-
final class Foo
10+
final class Foo extends Baz
1111
{
1212
public function bar()
1313
{
@@ -19,7 +19,7 @@ final class Foo
1919
</code>
2020
<code title="Invalid: An overriding method that only calls the parent.">
2121
<![CDATA[
22-
final class Foo
22+
final class Foo extends Baz
2323
{
2424
public function bar()
2525
{

0 commit comments

Comments
 (0)