Skip to content

Commit bb49116

Browse files
committed
[TwigComponent][Docs] add explicit string cast on string assertions
1 parent b758acb commit bb49116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ You can test how your component is mounted and rendered using the
13421342
data: ['foo' => 'bar'],
13431343
);
13441344

1345-
$this->assertStringContainsString('bar', $rendered);
1345+
$this->assertStringContainsString('bar', (string) $rendered);
13461346

13471347
// use the crawler
13481348
$this->assertCount(5, $rendered->crawler()->filter('ul li'));
@@ -1360,7 +1360,7 @@ You can test how your component is mounted and rendered using the
13601360
],
13611361
);
13621362

1363-
$this->assertStringContainsString('bar', $rendered);
1363+
$this->assertStringContainsString('bar', (string) $rendered);
13641364
}
13651365
}
13661366

0 commit comments

Comments
 (0)