Skip to content

Commit 08a79e7

Browse files
committed
rectify
1 parent 0effdc8 commit 08a79e7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function refactor(Node $node)
8282
$flagsExpr = $args[3]->value;
8383

8484
if ($flagsExpr instanceof BitwiseOr) {
85-
$this->bitwiseFlagCleaner->cleanFuncCall($funcCall, $flagsExpr, self::UNMATCHED_NULL_FLAG, null);
85+
$this->bitwiseFlagCleaner->cleanFuncCall($funcCall, $flagsExpr, self::UNMATCHED_NULL_FLAG);
8686
if ($this->nodeComparator->areNodesEqual($flagsExpr, $args[3]->value)) {
8787
return null;
8888
}

rules/DowngradePhp80/NodeAnalyzer/NamedToUnnamedArgs.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public function fillFromNamedArgs(
5656
$currentArg->value,
5757
$currentArg->byRef,
5858
$currentArg->unpack,
59-
[],
60-
null
59+
[]
6160
);
6261
}
6362
}
@@ -108,8 +107,7 @@ public function fillFromJumpedNamedArgs(
108107
$parameterReflection->passedByReference()
109108
->yes(),
110109
$parameterReflection->isVariadic(),
111-
[],
112-
null
110+
[]
113111
);
114112
}
115113

rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function resolveFromReflection(
4545

4646
foreach ($currentArgs as $key => $arg) {
4747
if (! $arg->name instanceof Identifier) {
48-
$unnamedArgs[$key] = new Arg($arg->value, $arg->byRef, $arg->unpack, [], null);
48+
$unnamedArgs[$key] = new Arg($arg->value, $arg->byRef, $arg->unpack, []);
4949

5050
continue;
5151
}

0 commit comments

Comments
 (0)