Documentation

UselessOverridingMethodSniff.php

Detects unnecessary overridden methods that simply call their parent.

This rule is based on the PMD rule catalogue. The Useless Overriding Method sniff detects the use of methods that only call their parent class's method with the same name and arguments. These methods are not required.

class FooBar { public function __construct($a, $b) { parent::__construct($a, $b); } }
Tags
author

Manuel Pichler mapi@manuel-pichler.de

copyright

2007-2014 Manuel Pichler. All rights reserved.

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Interfaces, Classes and Traits

UselessOverridingMethodSniff

Search results