Skip to content

Commit 485a114

Browse files
authored
Update UseSafeFunctionsRule.php
1 parent 4506acc commit 485a114

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Rules/UseSafeFunctionsRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function processNode(Node $node, Scope $scope): array
3535
if (isset($unsafeFunctions[$functionName])) {
3636
if ($functionName === "json_decode" || $functionName === "json_encode") {
3737
foreach ($node->args as $arg) {
38-
// Named argument might be not place on exact "documented" position
3938
if ($arg->name instanceof Node\Identifier && $arg->name->toLowerString() === "flags") {
4039
if ($this->argValueIncludeJSONTHROWONERROR($arg)) {
4140
return [];

0 commit comments

Comments
 (0)