mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Fixed issue with PDO exception not returning correct type for error-code.
This commit is contained in:
@@ -36,7 +36,7 @@ class CookieTokenProvider implements ITokenProvider
|
||||
try {
|
||||
return bin2hex(random_bytes(32));
|
||||
} catch(\Exception $e) {
|
||||
throw new SecurityException($e->getMessage(), $e->getCode(), $e->getPrevious());
|
||||
throw new SecurityException($e->getMessage(), (int)$e->getCode(), $e->getPrevious());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user