PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseTypeStandard.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: 997 bytes
 

Contents

Class file image Download
<documentation title="Lowercase PHP Types"> <standard> <![CDATA[ All PHP types used for parameter type and return type declarations should be lowercase. ]]> </standard> <code_comparison> <code title="Valid: Lowercase type declarations used."> <![CDATA[ function myFunction(int $foo) : string { } ]]> </code> <code title="Invalid: Non-lowercase type declarations used."> <![CDATA[ function myFunction(<em>Int</em> $foo) : <em>STRING</em> { } ]]> </code> </code_comparison> <standard> <![CDATA[ All PHP types used for type casting should be lowercase. ]]> </standard> <code_comparison> <code title="Valid: Lowercase type used."> <![CDATA[ $foo = (bool) $isValid; ]]> </code> <code title="Invalid: Non-lowercase type used."> <![CDATA[ $foo = <em>(BOOL)</em> $isValid; ]]> </code> </code_comparison> </documentation>