PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 631 bytes
 

Contents

Class file image Download
<documentation title="Unnecessary Final Modifiers"> <standard> <![CDATA[ Methods should not be declared final inside of classes that are declared final. ]]> </standard> <code_comparison> <code title="Valid: A method in a final class is not marked final."> <![CDATA[ final class Foo { public function bar() { } } ]]> </code> <code title="Invalid: A method in a final class is also marked final."> <![CDATA[ final class Foo { public <em>final</em> function bar() { } } ]]> </code> </code_comparison> </documentation>