Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue after update to 0.16 #374

Closed
aistrati opened this issue Apr 11, 2017 · 10 comments
Closed

Issue after update to 0.16 #374

aistrati opened this issue Apr 11, 2017 · 10 comments

Comments

@aistrati
Copy link

Getting an error after upgrading from 0.15 to 0.16:

Type error: Argument 1 passed to League\Fractal\Scope::filterFieldsets() must be of the type array, integer given, called in /vendor/league/fractal/src/Scope.php on line 385

@karlomikus
Copy link

Probably similar issue to #371

@ejunker
Copy link

ejunker commented Apr 17, 2017

I also ran into an error similar to this. I have a transformer that returns an object instead of an array.

@freekmurze
Copy link

Got this error too. Is there an easy fix for this? You can get the error by running the it_can_parse_excludes of the fractal-0.16 branch of Fractalistic

Same test runs fine on the master branch which uses fractal 0.15

@greydnls
Copy link
Contributor

Hi! Sorry for the delay, I'm aware of the issue and should be releasing a bugfix for it very shortly.

@willemstuursma
Copy link

Thanks, I have the same issue. We have an include that returns $this->collection(string[]).

@AbhijeetSomwanshi
Copy link

I am also having the same Error on updating my Laravel Project with composer update command:

Type error: Argument 1 passed to League\Fractal\Scope::filterFieldsets() must be of the type array, integer given, called in /var/www/html/vendor/league/fractal/src/Scope.php on line 385

@AbhijeetSomwanshi
Copy link

@greydnls sir, When we will be getting a bugfix for this.

@willemstuursma
Copy link

I've resolved this with the new 0.17 version using primitives.

My include is now returning $this->primitive(string[]); instead of $this->collection(string[]) which works.

@davidyell
Copy link

Just ran into this error with an include which returns a collection

@matthewtrask
Copy link
Contributor

if this is still an issue, please feel free to reopen, but as we are on 0.20, we are past the version this issue is for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants