Skip to content

Commit

Permalink
Merge pull request #13 from ruudk/patch-1
Browse files Browse the repository at this point in the history
PHP 8.1 > Always pass `string` to `rtrim`
  • Loading branch information
Yozhef authored Dec 24, 2021
2 parents 16c6168 + 7c7f059 commit df04efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/MinkExtension/Context/RawMinkContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function visitPath($path, $sessionName = null)
*/
public function locatePath($path)
{
$startUrl = rtrim($this->getMinkParameter('base_url'), '/') . '/';
$startUrl = rtrim($this->getMinkParameter('base_url') ?? '', '/') . '/';

return 0 !== strpos($path, 'http') ? $startUrl . ltrim($path, '/') : $path;
}
Expand Down

0 comments on commit df04efb

Please sign in to comment.