refactor: introduce PersistentObjectFactory and deprecate PersistentProxyObjectFactory with final #1945
Annotations
10 errors
src/Factory.php#L514
Method Zenstruck\Foundry\Factory::createAndUproxify() should return TObject of object but returns object.
|
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>.
|
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>>.
|
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.
|
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>>.
|
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.
|
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.
|
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>>.
|
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>>.
|
|
The logs for this run have expired and are no longer available.
Loading