Azure / azure-storage-php

Microsoft Azure Storage Library for PHP
MIT License
217 stars 198 forks source link

Bug in ServiceProperties.php #344

Open FGalliot opened 1 year ago

FGalliot commented 1 year ago

concern: vendor/microsoft/azure-storage-common/src/Common/Models/ServiceProperties.php

On my server I had to correct line 253: if (count($this->getCorses()) == 1) { by: if ($this->getCorses()!="" AND count($this->getCorses()) == 1) { because the script gave an error: Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in ..../vendor/microsoft/azure-storage-common/src/Common/Models/ServiceProperties.php:256