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

[5.5] setModel parameter should be the model name #20896

Merged
merged 1 commit into from
Aug 31, 2017
Merged

[5.5] setModel parameter should be the model name #20896

merged 1 commit into from
Aug 31, 2017

Conversation

devcircus
Copy link
Contributor

Addresses #20888

Details:

In all other cases throughout the framework where setModel is called on ModelNotFoundException, the string name of the model is passed. Here, in ImplicitRouteBinding, a ReflectionClass object is passed.

Before:

When calling 'getModel' on the exception object, a ReflectionClass object will be returned.

After:

$exception->getModel will return the string name of the model, just as it does elsewhere in the framework.

In all other cases throughout the framework where setModel is called on ModelNotFoundException, the string name of the model is passed. Here, in ImplicitRouteBinding, a ReflectionClass object is passed.

Before:
When calling 'getModel' on the exception object, a ReflectionClass object will be returned.

After:
$exception->getModel will return the string name of the model, just as it does elsewhere in the framework.
@devcircus devcircus changed the title [5.5] setModel parameter should be the string model name [5.5] setModel parameter should be the model name Aug 31, 2017
@themsaid themsaid merged commit 57c4513 into laravel:5.5 Aug 31, 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