Skip to content

Conversation

@ctwillie
Copy link
Contributor

…Manger class

@taylorotwell taylorotwell merged commit 23b8999 into laravel:4.0 Mar 18, 2020
@ctwillie ctwillie deleted the feature/replace-deprecated-app-property-with-container branch March 18, 2020 22:28
@driesvints
Copy link
Member

We'll need to convert the array access calls to make method calls because the container doesn't implements ArrayAccess.

@ctwillie
Copy link
Contributor Author

I believe it does. According to the api docs.

https://laravel.com/api/7.x/Illuminate/Container/Container.html

@ctwillie
Copy link
Contributor Author

ctwillie commented Mar 19, 2020

@driesvints

also try this

$relectionContainer = new ReflectionClass(get_class(app()));

dd($relectionContainer->getInterfaceNames());

And you will see 'ArrayAccess' in the list

@driesvints
Copy link
Member

driesvints commented Mar 19, 2020

@ctwillie that's the implementation. The property references the contract which doesn't implements it (nor should it).

@ctwillie
Copy link
Contributor Author

@driesvints Aha! Something I'll keep in mind from here on out. Thanks. Will do a PR.

@GrahamCampbell
Copy link
Contributor

@ctwillie those are not the docs for the container contract though. ;)

https://laravel.com/api/7.x/Illuminate/Contracts/Container/Container.html

@ctwillie
Copy link
Contributor Author

@GrahamCampbell yea, I realize that now. I learned something new to pay attention to and stand corrected. Give me a break, I've only been coding for a couple of years, lol. Thanks for pointing that out though.

@driesvints
Copy link
Member

@ctwillie we had to revert this because it broke apps running on Laravel 5.7 & 5.8. We can do these changes on master where only Laravel 6 and 7 are supported.

#450

@ctwillie
Copy link
Contributor Author

ctwillie commented Jun 3, 2020

Ok cool. Will do the same in master branch.

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.

4 participants