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 1f82cfa commit 1e94ca1Copy full SHA for 1e94ca1
src/FactoryCollection.php
@@ -147,9 +147,9 @@ public function create(array|callable $attributes = []): array
147
$factories = $this->all();
148
149
if (Configuration::instance()->flushOnce && $this->isRootFactory && $this->factory instanceof PersistentObjectFactory && $this->factory->isPersisting()) {
150
- $lastFactory = array_pop($factories);
+ $lastFactory = \array_pop($factories);
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);
+ $factories = \array_map(static fn(Factory $f) => $f->notRootFactory(), $factories);
153
$factories[] = $lastFactory;
154
}
155
0 commit comments