Skip to content

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final #1945

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final

refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final #1945

Triggered via pull request November 11, 2023 14:26
Status Failure
Total duration 1m 4s
Artifacts

ci.yml

on: pull_request
Sync meta files
0s
Sync meta files
Code Coverage
56s
Code Coverage
composer-validate  /  Validate composer.json
7s
composer-validate / Validate composer.json
Build Documentation
13s
Build Documentation
Static Analysis
18s
Static Analysis
Matrix: tests
Run php-cs-fixer
0s
Run php-cs-fixer
Fit to window
Zoom out
Zoom in

Annotations

33 errors
P:8.2, S:*, D:none
Process completed with exit code 2.
Static Analysis: src/Factory.php#L514
Method Zenstruck\Foundry\Factory::createAndUproxify() should return TObject of object but returns object.
Static Analysis: src/Persistence/PersistentObjectFactory.php#L104
Method Zenstruck\Foundry\Persistence\PersistentObjectFactory::create() should return TModel of object but returns (TModel of object)|Zenstruck\Foundry\Persistence\Proxy<TModel of object>.
Static Analysis: src/Persistence/PersistentProxyObjectFactory.php#L50
Method Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory::__callStatic() should return array<int, Zenstruck\Foundry\Persistence\Proxy<TModel of object>> but returns array<int, (TModel of object)|Zenstruck\Foundry\Persistence\Proxy<TModel of object>>.
Static Analysis: src/Persistence/PersistentProxyObjectFactory.php#L61
Method Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory::createOne() should return Zenstruck\Foundry\Persistence\Proxy<TModel of object> but returns TModel of object.
Static Analysis: src/Persistence/PersistentProxyObjectFactory.php#L74
Method Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory::createSequence() should return array<int, Zenstruck\Foundry\Persistence\Proxy<TModel of object>> but returns array<int, (TModel of object)|Zenstruck\Foundry\Persistence\Proxy<TModel of object>>.
Static Analysis: src/Persistence/PersistentProxyObjectFactory.php#L93
Method Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory::findOrCreate() should return Zenstruck\Foundry\Persistence\Proxy<TModel of object> but returns TModel of object.
Static Analysis: src/Persistence/PersistentProxyObjectFactory.php#L152
Method Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory::randomOrCreate() should return Zenstruck\Foundry\Persistence\Proxy<TModel of object> but returns TModel of object.
Static Analysis: src/functions.php#L83
Function Zenstruck\Foundry\create_many() 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/functions.php#L133
Function Zenstruck\Foundry\instantiate_many() 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
Process completed with exit code 1.
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
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:*, D:pgsql|mongo (dama)
A task was canceled.
P:8.2, S:*, D:pgsql
A task was canceled.
P:8.1, S:6.4.*, D:mysql (dama)
The operation was canceled.
P:8.2, S:6.3.*, D:mysql (dama)
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, 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.2, S:6.3.*, D:mongo
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.2, S:*, D:mysql|mongo (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:*, D:mysql|mongo (dama)
The operation was canceled.
P:8.2, S:6.4.*, D:mongo
The operation was canceled.
P:8.2, S:6.4.*, D:mysql (dama)
The job was canceled because "_8_2_highest___none_1" failed.
P:8.2, S:6.4.*, D:mysql (dama)
The operation was canceled.
P:8.2, S:*, D:mysql
The operation was canceled.
P:8.1, S:6.3.*, D:mysql (dama)
The operation was canceled.
P:8.1, S:6.3.*, D:mongo
The job was canceled because "_8_2_highest___none_1" failed.
P:8.1, S:6.3.*, D:mongo
The operation was canceled.
Code Coverage
Process completed with exit code 1.