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

Error: Cannot unpack Traversable with string keys when using model:show #43285

Closed
aneesdev opened this issue Jul 19, 2022 · 2 comments · Fixed by #43301
Closed

Error: Cannot unpack Traversable with string keys when using model:show #43285

aneesdev opened this issue Jul 19, 2022 · 2 comments · Fixed by #43301

Comments

@aneesdev
Copy link

aneesdev commented Jul 19, 2022

  • Laravel Version: 9.21.0
  • PHP Version: 8.0.11
  • Database Driver & Version: mysql (mariadb 10.3.31)

Description:

When running model:show command I get this error:

image

Maybe these unpacking arrays also work with string-key arrays only in PHP 8.1? If true then it should not be used because Laravel 9 minimum PHP is >= 8.0 😄

Steps To Reproduce:

None

@aneesdev aneesdev changed the title Error: Cannot unpack Traversable with string keys when running model:show Error: Cannot unpack Traversable with string keys when using model:show Jul 19, 2022
@aneesdev
Copy link
Author

@nunomaduro @jessarcher

@jessarcher
Copy link
Member

Sorry about that @aneesdev! I've addressed this in #43301.

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 a pull request may close this issue.

2 participants