Skip to content

Commit

Permalink
Run Rectify (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Oct 5, 2023
1 parent 24ea3ec commit 873458c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function decorateCommandConstructor(Class_ $class): void
}

// empty stmts? add parent::__construct() to setup command
if (count((array) $constuctClassMethod->stmts) === 0) {
if ((array) $constuctClassMethod->stmts === []) {
$parentConstructStaticCall = new StaticCall(new Name('parent'), '__construct');
$constuctClassMethod->stmts[] = new Expression($parentConstructStaticCall);
}
Expand Down

0 comments on commit 873458c

Please sign in to comment.