DbRepository: Function `type()` does not exist, it should be called `gettype()`

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 09:52:28 +02:00 committed by raviks789
parent d24cd0bf09
commit bdddb88164
1 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
} elseif (is_string($table)) { } elseif (is_string($table)) {
$table = (strpos($table, $prefix) === false ? $prefix : '') . $table; $table = (strpos($table, $prefix) === false ? $prefix : '') . $table;
} else { } else {
throw new IcingaException('Table prefix handling for type "%s" is not supported', type($table)); throw new IcingaException('Table prefix handling for type "%s" is not supported', gettype($table));
} }
return $table; return $table;
@ -331,7 +331,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
$table = str_replace($prefix, '', $table); $table = str_replace($prefix, '', $table);
} }
} else { } else {
throw new IcingaException('Table prefix handling for type "%s" is not supported', type($table)); throw new IcingaException('Table prefix handling for type "%s" is not supported', gettype($table));
} }
return $table; return $table;