Skip to content

Commit a0f7fba

Browse files
committed
Fixed coding standards.
Signed-off-by: Alex Skrypnyk <alex@drevops.com>
1 parent 5134265 commit a0f7fba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/DrevOps/BehatScreenshotExtension/Context/ScreenshotContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ protected function makeFileName(string $ext, ?string $filename = NULL, bool $is_
361361
// @codeCoverageIgnoreStart
362362
$host = parse_url($url, PHP_URL_HOST);
363363
if ($host) {
364-
$url = str_replace($host, getenv('BEHAT_SCREENSHOT_TOKEN_HOST'), $url);
364+
$url = str_replace($host, (string) getenv('BEHAT_SCREENSHOT_TOKEN_HOST'), $url);
365365
}
366366
// @codeCoverageIgnoreEnd
367367
}

tests/behat/bootstrap/ScreenshotTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait ScreenshotTrait {
2222
*/
2323
public function screenshotInitParams(array $parameters): void {
2424
if (getenv('BEHAT_SCREENSHOT_DIR')) {
25-
$this->screenshotDir = getenv('BEHAT_SCREENSHOT_DIR');
25+
$this->screenshotDir = (string) getenv('BEHAT_SCREENSHOT_DIR');
2626
}
2727
elseif (isset($parameters['screenshot_dir'])) {
2828
$this->screenshotDir = $parameters['screenshot_dir'];

0 commit comments

Comments
 (0)