flownative / flow-aws-s3

Amazon S3 adaptor for Neos and Flow
MIT License
18 stars 33 forks source link

Return type error when no storage prefix is configured #62

Open riea opened 1 year ago

riea commented 1 year ago

With v2.6.1 and PHP 8.1 and no package configuration adjustments regarding a storage key prefix an Exception gets thrown:

Flownative_Aws_S3_S3Target.php: Flownative\Aws\S3\S3Storage_Original::getKeyPrefix(): Return value must be of type string, null returned

Am i required to add an empty string prefix option to my configuration even if i don’t use prefixed storages in my setup?

kdambekalns commented 1 year ago

Sorry for the slow reaction… yes, we need to type cast that, you should not need to explicitly set an empty string. Does no harm, though, as a workaround.