-
Notifications
You must be signed in to change notification settings - Fork 392
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
Update error500.php cannot use protected property #970
Conversation
The annotation seems incorrect here if $error can be an instance of |
@@ -24,9 +24,9 @@ | |||
<?= h($error->queryString) ?> | |||
</p> | |||
<?php endif; ?> | |||
<?php if (!empty($error->params)) : ?> | |||
<?php if (!empty($error->getBoundParams())) : ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If $error can be multiple classes, should probably wrap all of this in a instanceof check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the Error class also only has getBoundParams() and protected params ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which exception class has getBoundParams()
? I only see it on Database\Statement\Statement
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now needs to be a method_exists()
check now or better yet an instanceof
check for specific exception class. Suggested change will generate errors for other error classes.
This pull request is stale because it has been open 30 days with no activity. Remove the |
cannot use protected property
params
-> use->getBoundParams()