Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Fix a warning of PHP 8.1 while listing blobs #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions azure-storage-blob/src/Blob/BlobRestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1521,11 +1521,13 @@ public function listBlobsAsync(
Resources::QP_COMP,
'list'
);
$this->addOptionalQueryParam(
$queryParams,
Resources::QP_PREFIX_LOWERCASE,
str_replace('\\', '/', $options->getPrefix())
);
if (null !== $options->getPrefix()) {
$this->addOptionalQueryParam(
$queryParams,
Resources::QP_PREFIX_LOWERCASE,
str_replace('\\', '/', $options->getPrefix())
);
}
$this->addOptionalQueryParam(
$queryParams,
Resources::QP_MARKER_LOWERCASE,
Expand Down