You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Illuminate\Filesystem\FilesystemAdapter::Illuminate\Filesystem\{closure}(): Argument #1 ($attributes) must be of type League\Flysystem\StorageAttributes, array given
which kinda make sense as the listContents method should return iterable instead of array. The FilesystemAdapter.php in Laravel expects an array of StorageAttributes:
Can you give us a little more information about the issue? Where does this happen? I've quickly checked the Core Library "vendor/laravel/src/Filesystem/FilesystemAdapter" and this is returning an array as well.
Could you please provide an example or some code to help us reproduce the error? I noticed that the FileSystemAdapter is returning a DirectlyListing object, while we are returning an array. However, in the current implementations where we use the package, it seems to be working with the array as well.
public function listContents(string $location, bool $deep = self::LIST_SHALLOW): DirectoryListing;
What happened?
I run into this issue:
Illuminate\Filesystem\FilesystemAdapter::Illuminate\Filesystem\{closure}(): Argument #1 ($attributes) must be of type League\Flysystem\StorageAttributes, array given
which kinda make sense as the
listContents
method should returniterable
instead ofarray
. The FilesystemAdapter.php in Laravel expects an array ofStorageAttributes
:Package Version
3.1
PHP Version
8.3
Laravel Version
10
Which operating systems does with happen with?
No response
The text was updated successfully, but these errors were encountered: