mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 01:32:14 +00:00
Added support for PHP7
This commit is contained in:
@@ -8,7 +8,7 @@ interface ITokenProvider
|
||||
/**
|
||||
* Refresh existing token
|
||||
*/
|
||||
public function refresh();
|
||||
public function refresh(): void;
|
||||
|
||||
/**
|
||||
* Validate valid CSRF token
|
||||
@@ -16,6 +16,14 @@ interface ITokenProvider
|
||||
* @param string $token
|
||||
* @return bool
|
||||
*/
|
||||
public function validate($token);
|
||||
public function validate($token): bool;
|
||||
|
||||
/**
|
||||
* Get token token
|
||||
*
|
||||
* @param string|null $defaultValue
|
||||
* @return string|null
|
||||
*/
|
||||
public function getToken($defaultValue = null);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user