Merge pull request #13 from ruudk/patch-1

PHP 8.1 > Always pass `string` to `rtrim`
This commit is contained in:
Yozhef
2021-12-24 15:19:26 +02:00
committed by GitHub

View File

@@ -141,7 +141,7 @@ class RawMinkContext implements MinkAwareContext
*/
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;
}