Commit dc6e6e4
committed
minor symfony#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 assertions1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
| 1345 | + | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
1363 | | - | |
| 1363 | + | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | 1366 | | |
| |||
0 commit comments