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
minor #2507 [TwigComponent][Docs] add explicit string cast on string assertions (Valmonzo)
This PR was merged into the 2.x branch.
Discussion
----------
[TwigComponent][Docs] add explicit string cast on string assertions
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Issues | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
Following the examples from the documentation, I realized that if we use the `TestLiveComponent::render` method in `assertStringContainsString` and if we use strict types, then it throw an error because we try to assert a `RenderedComponent` object instead of a string.
I think that explicitly adding the cast can help.
Commits
-------
1a77c94 [TwigComponent][Docs] add explicit string cast on string assertions
0 commit comments