diff --git a/docs/book/v2/coding-style-guide.md b/docs/book/v2/coding-style-guide.md index f73f5cf..777896b 100644 --- a/docs/book/v2/coding-style-guide.md +++ b/docs/book/v2/coding-style-guide.md @@ -356,7 +356,6 @@ $instance = new class extends Foo implements - The code may not contain unreachable code. [*](ruleset.md#squizphpnonexecutablecode) - The backtick operator may not be used for execution of shell commands. [*](ruleset.md#genericphpbacktickoperator) - Class and Interface names should be unique in a project and must have a unique fully qualified name. [*](ruleset.md#genericclassesduplicateclassname) -- Methods that only call the parent method should not be defined. [*](ruleset.md#genericcodeanalysisuselessoverridingmethod) - Files that contain PHP code should only have PHP code and should not have any _"inline HTML"_. [*](ruleset.md#genericfilesinlinehtml) - There must be exactly one space after a type cast. [*](ruleset.md#genericformattingspaceaftercast) - Constructors should be named `__construct`, not after the class. [*](ruleset.md#genericnamingconventionsconstructorname) diff --git a/docs/book/v2/ruleset.md b/docs/book/v2/ruleset.md index e4c5d2f..7b4b830 100644 --- a/docs/book/v2/ruleset.md +++ b/docs/book/v2/ruleset.md @@ -113,34 +113,6 @@ final class Foo } ``` -### Generic.CodeAnalysis.UselessOverridingMethod -Methods that only call the parent method should not be defined. - -*Valid: A method that extends functionality on a parent method.* -```php -doSomethingElse(); - } -} -``` - -*Invalid: An overriding method that only calls the parent.* -```php - +