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

[Laravel 6] Make newPivotQuery() method public to match parent. #30

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

szainmehdi
Copy link
Contributor

The method signature of newPivotQuery() was changed in Laravel 6. laravel/framework#31677

This fixes the failing test suite here

@@ -119,7 +119,7 @@ protected function baseAttachRecord($id, $timed)
*
* @return \Illuminate\Database\Query\Builder
*/
protected function newPivotQuery()
public function newPivotQuery()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apps using 5.* would break right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. I've updated the Laravel version required by this package to be ^6.0

@szainmehdi szainmehdi merged commit 0afe08e into master Oct 28, 2020
@szainmehdi szainmehdi deleted the new-pivot-query-public branch September 13, 2022 20:16
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

Successfully merging this pull request may close these issues.

2 participants