Skip to content

Commit

Permalink
BUGFIX: Fix sending bool values on rare conditions with env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Jul 9, 2020
1 parent 6f19347 commit e1052be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AssetSource/PexelsAssetSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final class PexelsAssetSource implements AssetSourceInterface
public function __construct(string $assetSourceIdentifier, array $assetSourceOptions)
{
$this->assetSourceIdentifier = $assetSourceIdentifier;
$this->pexelsClient = new PexelsClient($assetSourceOptions['accessKey'], $assetSourceOptions['proxyUrl'] ?? '');
$this->pexelsClient = new PexelsClient($assetSourceOptions['accessKey'], (string)($assetSourceOptions['proxyUrl'] ?? ''));
$this->copyRightNoticeTemplate = $assetSourceOptions['copyRightNoticeTemplate'] ?? '';
$this->defaultSearchTerm = trim($assetSourceOptions['defaultSearchTerm']) ?? '';
$this->iconPath = trim($assetSourceOptions['icon']) ?? '';
Expand Down

0 comments on commit e1052be

Please sign in to comment.