You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading my application to version 6.3.0-RC1 I started getting the following error on my CI pipeline:
Error: Attempt to modify property "privates" on null
After some research I found out the problem was introduced in #48469 .
How to reproduce
Here's an example test:
useApp\Factory\PostFactory;
useSymfony\Bundle\FrameworkBundle\Test\KernelTestCase;
useZenstruck\Foundry\Test\Factories;
useZenstruck\Foundry\Test\ResetDatabase;
class ExampleTest extends KernelTestCase
{
use Factories;
use ResetDatabase;
publicfunctiontestSomething(): void
{
gc_collect_cycles();
$posts = PostFactory::createMany(5);
self::assertCount(5, $posts);
}
}
It would fail on the CI pipeline, but would pass locally. After a while I've realized I was able to reproduce the problem locally by adding gc_collect_cycles(); (this was not required for the test to fail on the CI).
I was also able to reproduce the problem with the following test:
Symfony version(s) affected
6.3.x
Description
After upgrading my application to version
6.3.0-RC1
I started getting the following error on my CI pipeline:After some research I found out the problem was introduced in #48469 .
How to reproduce
Here's an example test:
It would fail on the CI pipeline, but would pass locally. After a while I've realized I was able to reproduce the problem locally by adding
gc_collect_cycles();
(this was not required for the test to fail on the CI).I was also able to reproduce the problem with the following test:
reproducer.zip
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: