mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 20:50:06 +02:00
Fixed permission schema migration for PHP < 8.1
This commit is contained in:
parent
cad1206175
commit
1a3253b31a
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ class PermissionSchemaUpdater
|
|||
$reflectionClass = new \ReflectionClass(self::class);
|
||||
try {
|
||||
$method = $reflectionClass->getMethod('upgradeSchemaToVersion'.($n + 1));
|
||||
//Set the method accessible, so we can call it (needed for PHP < 8.1)
|
||||
$method->setAccessible(true);
|
||||
$method->invoke($this, $holder);
|
||||
} catch (\ReflectionException $e) {
|
||||
throw new \RuntimeException('Could not find update method for schema version '.($n + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue