Skip to content

Commit cf99714

Browse files
authored
refactor: Remove unnecessary dump-autoload condition (#1537)
1 parent 78ef716 commit cf99714

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Box.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ public function endBuffering(?callable $dumpAutoload): void
150150
);
151151
}
152152

153-
if (null !== $dumpAutoload) {
154-
$dumpAutoload(
155-
$this->scoper->getSymbolsRegistry(),
156-
$this->scoper->getPrefix(),
157-
$this->scoper->getExcludedFilePaths(),
158-
);
159-
}
153+
$dumpAutoload(
154+
$this->scoper->getSymbolsRegistry(),
155+
$this->scoper->getPrefix(),
156+
$this->scoper->getExcludedFilePaths(),
157+
);
160158

161159
chdir($cwd);
162160

0 commit comments

Comments
 (0)