Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<documentation title="$_REQUEST Superglobal">
<standard>
<![CDATA[
<![CDATA[
$_REQUEST should never be used due to the ambiguity created as to where the data is coming from. Use $_POST, $_GET, or $_COOKIE instead.
]]>
</standard>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<documentation title="Nullable Type Declarations Functions">
<standard>
<![CDATA[
<![CDATA[
In nullable type declarations there MUST NOT be a space between the question mark and the type.
]]>
</standard>
<code_comparison>
<code title="Valid: no whitespace used.">
<![CDATA[
<![CDATA[
public function functionName(
?string $arg1,
?int $arg2
Expand All @@ -26,14 +26,14 @@ public function functionName(
</code_comparison>
<code_comparison>
<code title="Valid: no unexpected characters.">
<![CDATA[
<![CDATA[
public function foo(?int $arg): ?string
{
}
]]>
</code>
<code title="Invalid: unexpected characters used.">
<![CDATA[
<![CDATA[
public function bar(? /* comment */ int $arg): ?
// nullable for a reason
string
Expand Down