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
Maybe the real issue here is that [0 => true] gets turned into [0 => "1"] when getting it from the error bag.
The text was updated successfully, but these errors were encountered:
SjorsO
changed the title
Breaking change in $this->session()->get('errors')->all()
Breaking change in getting errors from the ErrorBag
Apr 25, 2020
SjorsO
changed the title
Breaking change in getting errors from the ErrorBag
Breaking change in getting errors from the ErrorBag (or maybe due to PHPUnit 9?)
Apr 25, 2020
SjorsO
changed the title
Breaking change in getting errors from the ErrorBag (or maybe due to PHPUnit 9?)
Breaking change when using SessionHas* assertions when using PHPUnit 9
Apr 25, 2020
SjorsO
changed the title
Breaking change when using SessionHas* assertions when using PHPUnit 9
assertSessionHas assertions don't work correctly when using PHPUnit 9
Apr 25, 2020
Maybe the real issue here is that [0 => true] gets turned into [0 => "1"] when getting it from the error bag.
This is actually correct because message placeholders are populated with the values from the error bag. Because they're strings all booleans are converted to "1"s and zeros respectively.
Description:
After a updating PHPUnit from 8 to 9 some of my tests started failing, for example:
After some debugging, this seems to be the culprit:
The result of the first dump is:
The result of the second dump is:
Maybe the real issue here is that
[0 => true]
gets turned into[0 => "1"]
when getting it from the error bag.The text was updated successfully, but these errors were encountered: