PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.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: Yesterday
Size: 708 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Lowercase Class Resolution Keyword" > <standard> <![CDATA[ The "class" keyword when used for class name resolution, i.e. `::class`, must be in lowercase. ]]> </standard> <code_comparison> <code title="Valid: using lowercase."> <![CDATA[ echo MyClass::class; ]]> </code> <code title="Invalid: using uppercase or mixed case."> <![CDATA[ echo <em>MyClass::CLASS</em>; ]]> </code> </code_comparison> </documentation>