Skip to content

[5.4] Wrong type of argument for formatRecordsList method in InteractsWithPivotTable trait.#18547

Merged
taylorotwell merged 1 commit into
laravel:5.4from
malyusha:patch-1
Mar 29, 2017
Merged

[5.4] Wrong type of argument for formatRecordsList method in InteractsWithPivotTable trait.#18547
taylorotwell merged 1 commit into
laravel:5.4from
malyusha:patch-1

Conversation

@malyusha

@malyusha malyusha commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

When using sync method and passing only one eloquent model as first argument Fatal error is thrown, because formatRecordsList accepts only arrays, but result of parseIds method is not casted to type like in toggle method.

Type for result of parseIds method. When using sync method and passing only one eloquent model as first argument Fatal error is thrown, because formatRecordsList accepts only arrays, but result of parseIds method is not casted to type like in (for example) in toggle method.
@tillkruss tillkruss changed the title Wrong type of argument for formatRecordsList method in InteractsWithPivotTable trait. [5.4] Wrong type of argument for formatRecordsList method in InteractsWithPivotTable trait. Mar 28, 2017
@taylorotwell
taylorotwell merged commit 058dbed into laravel:5.4 Mar 29, 2017
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