laravel-registry
laravel-registry copied to clipboard
Returning array when key does not exists
Hello. I don't know if this is an issue, but when I try to get a key of an array, but key does not exists, Registry is returning the array.
For example: Registry::get('state.cities') but cities key does not exist, it will return existing state array when should be null because key does not exists.
I'm using L4 version.
I notice that actually exists a fix for this, but not added support to laravel4. I forked the project and created a branch since 48d8b761deffc922b107e65975348b42daf9e5d0 and named laravel4. Later, I created a 0.1.3 tag and used it in my project. I would like to add this as pull request, there still are many people using laravel 4 and who are using this package. I tried do it, but I couldn't, maybe because there is not a laravel 4 branch for compare.