PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Keywords/ShortFormTypeKeywordsStandard.xml

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

Contents

Class file image Download
<documentation title="Short Form Type Keywords"> <standard> <![CDATA[ Short form of type keywords MUST be used i.e. bool instead of boolean, int instead of integer etc. ]]> </standard> <code_comparison> <code title="Valid: Short form type used."> <![CDATA[ $foo = (bool) $isValid; ]]> </code> <code title="Invalid: Long form type type used."> <![CDATA[ $foo = <em>(boolean)</em> $isValid; ]]> </code> </code_comparison> </documentation>