mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 21:12:41 +00:00
Consolidate with conditions sniff.
This commit is contained in:
parent
11981f80fa
commit
e1c128bb99
25 changed files with 41 additions and 83 deletions
|
@ -227,8 +227,7 @@ class Router {
|
|||
* @throws RouterException
|
||||
*/
|
||||
protected static function _validateRouteClass($routeClass) {
|
||||
if (
|
||||
$routeClass !== 'CakeRoute' &&
|
||||
if ($routeClass !== 'CakeRoute' &&
|
||||
(!class_exists($routeClass) || !is_subclass_of($routeClass, 'CakeRoute'))
|
||||
) {
|
||||
throw new RouterException(__d('cake_dev', 'Route class not found, or route class is not a subclass of CakeRoute'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue