We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e202b4 commit 8b5c1d2Copy full SHA for 8b5c1d2
src/FactoryCollection.php
@@ -151,7 +151,7 @@ public function create(array|callable $attributes = []): array
151
// @phpstan-ignore method.notFound (phpstan does not understand that we only have persistent factories here)
152
$factories = \array_map(static fn(Factory $f) => $f->notRootFactory(), $factories);
153
154
- if ($lastFactory !== null) {
+ if (null !== $lastFactory) {
155
$factories[] = $lastFactory;
156
}
157
0 commit comments