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

Collection::get() is broken after commit #22554 #22830

Closed
mariosvasiliou opened this issue Jan 17, 2018 · 3 comments
Closed

Collection::get() is broken after commit #22554 #22830

mariosvasiliou opened this issue Jan 17, 2018 · 3 comments

Comments

@mariosvasiliou
Copy link

  • Laravel Version: 5.5.29
  • PHP Version: 7.1.2
  • Database Driver & Version: MYSQL 5.7

Description:

After commit "[5.5] Add the power of Arr::get() to Collection get() #22554" the functionality of collection::get() has changed. The default value is always ignored and whole collection is returned instead of null(default) value.

Steps To Reproduce:

$users = User::where('column',value)->get()->keyBy('id');
$user = $users->get(null);

@MattMangoni
Copy link

👍 Same problem here.

@OlesKashchenko
Copy link

Same problem after update from 5.5.28 to 5.5.29

@vlakoff
Copy link
Contributor

vlakoff commented Jan 18, 2018

Fixed in 5.5.32

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

5 participants