mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-09 20:49:30 +00:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
|
@ -77,11 +77,7 @@ class StructureVoter extends ExtendedVoter
|
|||
*/
|
||||
protected function instanceToPermissionName($subject): ?string
|
||||
{
|
||||
if (!is_string($subject)) {
|
||||
$class_name = get_class($subject);
|
||||
} else {
|
||||
$class_name = $subject;
|
||||
}
|
||||
$class_name = is_string($subject) ? $subject : $subject::class;
|
||||
|
||||
//If it is existing in index, we can skip the loop
|
||||
if (isset(static::OBJ_PERM_MAP[$class_name])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue