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
Actually looking at this again, this is a legit case. Indeed there is no way to understand that "" should be interpreted as an empty string as your expression is strictly equivalent to say "50% changes of having '<sentences()>' (which will be interpreted) or having '""' which is a plain string. If you want the result to be evaluated in an empty string i think that's the case where a custom Faker provider is required.
Actually there is no need for custom Faker provider. Since PHP functions can be used as providers, this works reliable: addressNote: '20%? <sentence()>: <strval("")>'
Of course instead of "" you can use anything that will evaluate into empty string by strval.
Probably related to #601 ?
Current behavior
Using the following fixture file:
Results in the string
""
being insterted in the database.Using the following fixture file:
Results in an empty string being inserted in the database.
Expected behavior
Both fixture files should result in an empty string being inserted in the database.
Dependencies
The text was updated successfully, but these errors were encountered: