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

Declaration of Franzose\ClosureTable\Entity::performUpdate() should be compatible #39

Closed
ben-joostens opened this issue Oct 3, 2013 · 8 comments

Comments

@ben-joostens
Copy link
Contributor

All of a sudden I'm getting this error…

Declaration of Franzose\ClosureTable\Entity::performUpdate() should be compatible with Illuminate\Database\Eloquent\Model::performUpdate(Illuminate\Database\Eloquent\Builder $query)

The declaration in Entity looks like this:
protected function performUpdate($query)

And in core:
protected function performUpdate(Builder $query)

@ben-joostens
Copy link
Contributor Author

Just fyi, it complains about both performUpdate and performInsert

@ben-joostens
Copy link
Contributor Author

Seems to be ok again after importing builder in Entitiy.php:

use \Illuminate\Database\Eloquent\Builder;

and Updating both declarations:

protected function performInsert(Builder $query)
protected function performUpdate(Builder $query)

@franzose
Copy link
Owner

franzose commented Oct 4, 2013

@ben-joostens, It's strange but I have no such messages as you have... Would you like to make the pull request with these changes? Otherwise I can do it myself.

@ben-joostens
Copy link
Contributor Author

@franzose Alright, pull request made.

@franzose
Copy link
Owner

franzose commented Oct 4, 2013

@ben-joostens, thank you man! Please, however, make all your further pulls to 2.0 branch.

@vjandrea
Copy link
Contributor

vjandrea commented Oct 9, 2013

I continue to see these messages in my php error log:
[09-Oct-2013 23:24:44 Europe/Berlin] PHP Strict Standards: Declaration of Franzose\ClosureTable\Entity::performInsert() should be compatible with Illuminate\Database\Eloquent\Model::performInsert(Illuminate\Database\Eloquent\Builder $query) in /Users/macbookpro/Documents/Github/closure_features/ClosureTable/src/models/Entity.php on line 0
I'm in sync with branch 2.0 so i don't know why it doesn't work.

@franzose
Copy link
Owner

Even with performInsert and performUpdate having Builder $query as the parameter?..

@vjandrea
Copy link
Contributor

Yes, that's bizarre. Anyway, i cloned again and the problem doesn't appear anymore, so probably it was a git cache issue.

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

3 participants