$arrayFiles = [];
foreach ($files as $file) {
$arrayFiles[] = (StorageFactory::make('minio'))->store($file->getClientOriginalName(),
file_get_contents($file));
}
return $arrayFiles;
Получаю ошибку
Array to string conversion
public function run()
{
$matcher = new UrlMatcher($this->routes, $this->requestContext);
try {
$this->request->attributes->add($matcher->match($this->request->getPathInfo()));
$this->controller = $this->getController();
$this->arguments = $this->getArguments($this->controller);
$response = $this->executeAction();
} catch (ResourceNotFoundException $exception) {
$response = new Response('Not Found', 404);
} catch (Exception $exception) {
$response = new Response('An error occurred', 500);
}
if (!empty($response) && is_object($response)) {
$response->send();
} else {
echo $response;
}
}
указывает на эту строку
else {
echo $response;
}