-
Notifications
You must be signed in to change notification settings - Fork 141
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
$rbac->EntityType->AddPath(): Would like to find alternative to assert() #5
Comments
this assert should logically never fail. have you found a case? Notice: This message is digitally signed, its source and integrity are verifiable. On Mordad 31, 1392, at 2:35 AM, Jesse Burns notifications@github.com wrote:
|
If you pass a string that does not have a leading slash to the first argument of AddPath the assert fails and issues a php warning. Example:
Result:
My Thoughts/Proposed Solutions: I think there are two ways we can go with this:
|
its a good choice, throw the exception and update phpdoc Notice: This message is digitally signed, its source and integrity are verifiable. On Shahrivar 1, 1392, at 7:55 AM, Jesse Burns notifications@github.com wrote:
|
I would like to find an alternative error handler to the call to assert.
The text was updated successfully, but these errors were encountered: