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
Since 2.0.5, story states seems to be broken for any values added with addState that are not objects.
addState allows mixed type, however in the getState method, we now call a refresh on PersistenceManager that expect an object. Hence the error in my case :
TypeError: Zenstruck\Foundry\Persistence\PersistenceManager::refresh(): Argument #1 ($object) must be of type object, array given, called in /srv/api/vendor/zenstruck/foundry/src/Story.php on line 140
Since 2.0.5, story states seems to be broken for any values added with
addState
that are not objects.addState
allowsmixed
type, however in thegetState
method, we now call arefresh
onPersistenceManager
that expect an object. Hence the error in my case :foundry/src/Story.php
Line 135 in 6105a36
The text was updated successfully, but these errors were encountered: