Skip to content

Commit fb0070d

Browse files
committed
fix typo
1 parent 614a9cc commit fb0070d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ build:
66
- composer require phpmv/ubiquity:dev-master codeception/codeception:^4.1 phpmv/ubiquity-annotations:^0.0 --dev
77
environment:
88
php:
9-
version: 7.4
9+
version: 8.0
1010
tests:
1111
override:
1212
- php-scrutinizer-run
1313
coverage:
1414
environment:
1515
php:
16-
version: 7.4
16+
version: 8.0
1717
services:
1818
mysql: 5.7
1919
tests:

src/Ubiquity/security/acl/AclManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ public static function isAllowed(string $role, ?string $resource = '*', ?string
182182
return self::$aclList->isAllowed($role, $resource ?? '*', $permission ?? 'ALL');
183183
}
184184

185-
public static function isAllowedRoute(string $role,string $routeName){
185+
public static function isAllowedRoute(string $role,string $routeName): bool {
186186
$routeInfo=Router::getRouteInfoByName($routeName);
187-
if (!isset ( $routeDetails ['controller'] )) {
188-
$routeInfo=current($routeInfo);
187+
if (!isset ( $routeInfo ['controller'] )) {
188+
$routeInfo=\current($routeInfo);
189189
}
190190
$controller=$routeInfo['controller']??null;
191191
$action=$routeInfo['action']??null;
@@ -209,7 +209,7 @@ public static function isAllowedRoute(string $role,string $routeName){
209209
/**
210210
* Save all acls,roles, resources and permissions for AclProviders with no autoSave.
211211
*/
212-
public static function saveAll() {
212+
public static function saveAll(): void {
213213
self::$aclList->saveAll();
214214
}
215215

0 commit comments

Comments
 (0)