Вот код:
Код: Выделить всё
/**
* Process (resize and save) all versions of an uploaded file
*
* @param UploadedFileInterface $file The uploaded file.
* @param-out TypedArray $versionsData
* A reference to a typed array of VersionData objects
* Paths are relative to the base photo path.
* @param-out string $error An error message if one was encountered.
*
* @return bool
*/
public function processAllVersions(UploadedFileInterface $file, TypedArray &$versionsData, string &$error): bool
Код: Выделить всё
TypedArrayКод: Выделить всё
/**
* Implements, as much as possible, a typed array.
*
* @template TKey
* @template TValue
* @implements ArrayAccess
* @implements Iterator
*/
class TypedArray implements ArrayAccess, Countable, Iterator, JsonSerializable
Думаю, я очень сильно определяюсь с типом(
Код: Выделить всё
int, VersionDataЧто мне не хватает?
Подробнее здесь: https://stackoverflow.com/questions/792 ... neric-type
Мобильная версия