The folderPath parameter in Asset element queries does not appear to accept an array as the criteria, even though the documentation shows a list of folder paths as a supported value.
Steps to reproduce
\craft\elements\Asset::find()->folderPath(['foo/*']);
Actual behavior
TypeError Cannot assign array to property craft\elements\db\AssetQuery::$folderPath of type ?string.
Craft CMS version
4.11.5
PHP version
8.2
The
folderPathparameter in Asset element queries does not appear to accept an array as the criteria, even though the documentation shows a list of folder paths as a supported value.Steps to reproduce
Actual behavior
Craft CMS version
4.11.5
PHP version
8.2