Skip to content

fix: flush only once per calls to Factory::create() in userland #3166

fix: flush only once per calls to Factory::create() in userland

fix: flush only once per calls to Factory::create() in userland #3166

Triggered via pull request March 22, 2025 10:38
Status Failure
Total duration 4m 14s
Artifacts

ci.yml

on: pull_request
Sync meta files
0s
Sync meta files
Test with paratest
44s
Test with paratest
Code Coverage
4m 8s
Code Coverage
composer-validate  /  Validate composer.json
7s
composer-validate / Validate composer.json
Lint Documentation
9s
Lint Documentation
Static Analysis
33s
Static Analysis
Matrix: test-reset-database
Matrix: tests
Run php-cs-fixer
0s
Run php-cs-fixer
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Static Analysis
Process completed with exit code 1.
Static Analysis: tests/Integration/ORM/EntityRelationship/EntityFactoryRelationshipTestCase.php#L654
Parameter #1 $callback of method Zenstruck\Foundry\ObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Address>::afterInstantiate() expects callable(Zenstruck\Foundry\Tests\Fixture\Entity\Address, array<string, mixed>, Zenstruck\Foundry\Persistence\PersistentObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Address>): void, Closure(Zenstruck\Foundry\Tests\Fixture\Entity\Address): Zenstruck\Foundry\Tests\Fixture\Entity\Contact given.
Static Analysis: tests/Integration/ORM/EntityRelationship/EntityFactoryRelationshipTestCase.php#L635
Parameter #1 $callback of method Zenstruck\Foundry\ObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Contact>::afterInstantiate() expects callable(Zenstruck\Foundry\Tests\Fixture\Entity\Contact, array<string, mixed>, Zenstruck\Foundry\Persistence\PersistentObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Contact>): void, Closure(Zenstruck\Foundry\Tests\Fixture\Entity\Contact): Zenstruck\Foundry\Tests\Fixture\Entity\Category given.
Static Analysis: tests/Integration/ORM/EntityRelationship/EntityFactoryRelationshipTestCase.php#L616
Parameter #1 $callback of method Zenstruck\Foundry\ObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Category>::afterInstantiate() expects callable(Zenstruck\Foundry\Tests\Fixture\Entity\Category, array<string, mixed>, Zenstruck\Foundry\Persistence\PersistentObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\Category>): void, Closure(Zenstruck\Foundry\Tests\Fixture\Entity\Category): Zenstruck\Foundry\Tests\Fixture\Entity\Contact given.
Static Analysis: tests/Integration/ORM/EdgeCasesRelationshipTest.php#L269
Parameter #1 $callback of method Zenstruck\Foundry\ObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\InversedOneToOneWithNonNullableOwning\OwningSide>::afterInstantiate() expects callable(Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\InversedOneToOneWithNonNullableOwning\OwningSide, array<string, mixed>, Zenstruck\Foundry\Persistence\PersistentObjectFactory<Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\InversedOneToOneWithNonNullableOwning\OwningSide>): void, Closure(Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\InversedOneToOneWithNonNullableOwning\OwningSide): Zenstruck\Foundry\Tests\Fixture\Entity\EdgeCases\InversedOneToOneWithNonNullableOwning\InverseSide given.
Static Analysis: tests/Fixture/Entity/EdgeCases/InversedOneToOneWithNonNullableOwning/InverseSide.php#L39
Should not use function "dump", please change the code.