Skip to content

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final #1942

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final #1942

Triggered via pull request November 11, 2023 12:19
Status Failure
Total duration 1m 58s
Artifacts

ci.yml

on: pull_request
Sync meta files
0s
Sync meta files
Code Coverage
1m 45s
Code Coverage
composer-validate  /  Validate composer.json
6s
composer-validate / Validate composer.json
Build Documentation
19s
Build Documentation
Static Analysis
29s
Static Analysis
Matrix: tests
Run php-cs-fixer
0s
Run php-cs-fixer
Fit to window
Zoom out
Zoom in

Annotations

31 errors
P:8.2, S:*, D:none
Process completed with exit code 2.
Static Analysis: src/AnonymousFactory.php#L65
Method Zenstruck\Foundry\AnonymousFactory::findOrCreate() should return Zenstruck\Foundry\Persistence\Proxy<TModel of object> but returns (TModel of object)|Zenstruck\Foundry\Persistence\Proxy<TModel of object>.
Static Analysis: src/AnonymousFactory.php#L115
Method Zenstruck\Foundry\AnonymousFactory::randomOrCreate() should return Zenstruck\Foundry\Persistence\Proxy<TModel of object> but returns (TModel of object)|Zenstruck\Foundry\Persistence\Proxy<TModel of object>.
Static Analysis: src/Bundle/Maker/Factory/FactoryClassMap.php#L35
Return type of call to static method Zenstruck\Foundry\Persistence\PersistentObjectFactory<Zenstruck\Foundry\Persistence\Proxy<mixed>>::class() contains unresolvable type.
Static Analysis: src/Factory.php#L96
Conditional return type references unknown parameter $noProxy.
Static Analysis: src/Factory.php#L415
Call to an undefined method object::_real().
Static Analysis: src/Factory.php#L423
Call to an undefined method object::_real().
Static Analysis: src/Factory.php#L435
Call to an undefined method object::_real().
Static Analysis: src/Factory.php#L454
Call to an undefined method object::_real().
Static Analysis: src/FactoryCollection.php#L85
Method Zenstruck\Foundry\FactoryCollection::create() should return array<int, Zenstruck\Foundry\Persistence\Proxy<TObject of object>> but returns array<int, (TObject of object)|Zenstruck\Foundry\Persistence\Proxy<TObject of object>>.
Static Analysis: src/ModelFactory.php#L56
Method Zenstruck\Foundry\ModelFactory::class() should return class-string<Zenstruck\Foundry\Persistence\Proxy<TModel of object>> but returns class-string<TModel of object>.
P:8.1, S:6.3.*, D:mysql (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:6.4.*, D:mongo
The operation was canceled.
P:8.2, S:*, D:pgsql|mongo (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:*, D:pgsql|mongo (dama)
The operation was canceled.
P:8.2, S:*, D:mysql|mongo (dama)
The operation was canceled.
P:8.2, S:*, D:pgsql
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:*, D:pgsql
The operation was canceled.
P:8.2, S:6.4.*, D:mysql (dama)
The operation was canceled.
P:8.1, S:6.4.*, D:mysql (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:6.3.*, D:mongo
The operation was canceled.
P:8.1, S:6.4.*, D:mysql (dama)
The operation was canceled.
P:8, S:5.4.*, D:mysql|mongo (lowest) (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8, S:5.4.*, D:mysql|mongo (lowest) (dama)
The operation was canceled.
P:8.1, S:6.3.*, D:mongo
The operation was canceled.
P:8.1, S:6.4.*, D:mongo
The job was canceled because "_8_2_highest___none_1" failed.
P:8.1, S:6.4.*, D:mongo
The operation was canceled.
P:8.2, S:6.3.*, D:mysql (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:6.3.*, D:mysql (dama)
The operation was canceled.
P:8.2, S:*, D:mysql
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:*, D:mysql
The operation was canceled.