PHP Classes

File: vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.xml   Download  
File: vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.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: 839 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="No Reserved Keyword Parameter Names" > <standard> <![CDATA[ It is recommended not to use reserved keywords as parameter names as this can become confusing when people use them in function calls using named parameters. ]]> </standard> <code_comparison> <code title="Valid: parameter names do not use reserved keywords."> <![CDATA[ function foo( $input, $description ) {} ]]> </code> <code title="Invalid: parameter names use reserved keywords."> <![CDATA[ function foo( $string, $echo = true ) {} ]]> </code> </code_comparison> </documentation>