I laravel 9 I have installed "bensampo/laravel-enum": "^5.2" and created new enum with command php artisan make:enum SearchDataType
and I wonder if there is a way to describe function with array of SearchDataType elements, like :
public function searchSiteContent(string $s = '', bool $partial= false, SearchDataType array $searchDataTypes= []) : array;
In line above I got syntax error, untill I remove SearchDataType in $searchDataTypes declarations
Thanks!