File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Standards/Generic/Docs/CodeAnalysis Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- <documentation title =" Useless Overriding Methods " >
1+ <documentation title =" Useless Overriding Method " >
22 <standard >
33 <![CDATA[
4- Methods should not be defined that only call the parent method.
4+ It is discouraged to override a method if the overriding method only calls the parent method.
55 ]]>
66 </standard >
77 <code_comparison >
8- <code title =" Valid: A method that extends functionality on a parent method." >
8+ <code title =" Valid: A method that extends functionality of a parent method." >
99 <![CDATA[
10- final class Foo
10+ final class Foo extends Baz
1111{
1212 public function bar()
1313 {
@@ -17,9 +17,9 @@ final class Foo
1717}
1818 ]]>
1919 </code >
20- <code title =" Invalid: An overriding method that only calls the parent." >
20+ <code title =" Invalid: An overriding method that only calls the parent method ." >
2121 <![CDATA[
22- final class Foo
22+ final class Foo extends Baz
2323{
2424 public function bar()
2525 {
You can’t perform that action at this time.
0 commit comments