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
Whenever the \Illuminate\Support\Collection is trying to create a new static(...), for example in the map method, since you've extended the Collection with your own something seems to go wrong.
PHP Fatal error: Uncaught InvalidArgumentException: Attributes are not an array. in /path/to/repo/vendor/maclof/kubernetes-client/src/Models/Model.php:54
Stack trace:
#0 /path/to/repo/vendor/maclof/kubernetes-client/src/Collections/NamespaceCollection.php(30): Maclof\Kubernetes\Models\Model->__construct()
#1 /path/to/repo/vendor/maclof/kubernetes-client/src/Collections/NamespaceCollection.php(14): Maclof\Kubernetes\Collections\NamespaceCollection->getNamespaces()
#2 /path/to/repo/vendor/illuminate/collections/Collection.php(644): Maclof\Kubernetes\Collections\NamespaceCollection->__construct()
#3 /path/to/repo/src/index.php(17): Illuminate\Support\Collection->map()
#4 {main}
thrown in /path/to/repo/vendor/maclof/kubernetes-client/src/Models/Model.php on line 54
I think the issue is the get<ResourceType> method in the corresponding collections.
A possible solution might be to convert the raw data to models before constructing the collection.
The text was updated successfully, but these errors were encountered:
Whenever the
\Illuminate\Support\Collection
is trying to create anew static(...)
, for example in the map method, since you've extended the Collection with your own something seems to go wrong.Here's an example:
will result in:
I think the issue is the
get<ResourceType>
method in the corresponding collections.A possible solution might be to convert the raw data to models before constructing the collection.
The text was updated successfully, but these errors were encountered: