Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7462148
StrictComparisonsStandard.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
813 B
Referenced Files
None
Subscribers
None
StrictComparisonsStandard.xml
View Options
<?xml version="1.0"?>
<documentation
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title=
"Strict Comparisons"
>
<standard>
<![CDATA[
Using loose comparisons is not allowed.
Loose comparisons will type juggle the values being compared, which often results in bugs.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: Using strict comparisons."
>
<![CDATA[
if (
$
var <em>===</em> 'text') {}
if (
$
var <em>!==</em> true) {}
]]>
</code>
<code
title=
"Invalid: Using loose comparisons."
>
<![CDATA[
if (
$
var <em>==</em> 'text') {}
if (
$
var <em>!=</em> true) {}
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Mon, Nov 23, 03:27 (3 d, 2 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f3/ab/837c2c7ab4b282b70a150fb6ae6f
Default Alt Text
StrictComparisonsStandard.xml (813 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment