Skip to content

Commit 64bfce7

Browse files
committed
fix
1 parent 80174a9 commit 64bfce7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

rules/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ private function replaceNewInParams(ClassMethod|Closure|Function_ $functionLike)
162162
/** @var Variable $paramVar */
163163
$paramVar = $param->var;
164164

165-
// check for property promotion
166165
if ($isConstructor) {
167166
$propertyFetch = new PropertyFetch(new Variable('this'), $paramVar->name);
168167
$coalesce = new Coalesce($param->var, $default);

0 commit comments

Comments
 (0)