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
this throws an exception 'Frozensheep\Synthesize\Exception\TypeException' with message 'Expected value of type Frozensheep\Synthesize\Type\FloatObject, string given'.
It seems like we have a choice of casting everything outside or inside of the Synthesize package; wouldn't be be easier for users of this it if was done inside?
The text was updated successfully, but these errors were encountered:
When setting a property wouldn't it be reasonable for Synthesize to attempt to cast to the desired type before throwing a TypeException ?
For instance:
this throws an exception 'Frozensheep\Synthesize\Exception\TypeException' with message 'Expected value of type Frozensheep\Synthesize\Type\FloatObject, string given'.
It seems like we have a choice of casting everything outside or inside of the Synthesize package; wouldn't be be easier for users of this it if was done inside?
The text was updated successfully, but these errors were encountered: