mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 23:30:35 -04:00
Use instanceof instead of is_a() to check some classes
This commit is contained in:
parent
1627c99a46
commit
2fc92b8768
4 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ $passwordRequired = false;
|
|||
http_response_code(401);
|
||||
|
||||
if($exception){
|
||||
if(is_a($exception, 'Exceptions\PasswordRequiredException')){
|
||||
if($exception instanceof Exceptions\PasswordRequiredException){
|
||||
// This login requires a password to proceed.
|
||||
// Prompt the user for a password.
|
||||
http_response_code(401);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue