From bdddb88164d15ba48ca127e4555e2cf3f96b1619 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 09:52:28 +0200 Subject: [PATCH] DbRepository: Function `type()` does not exist, it should be called `gettype()` --- library/Icinga/Repository/DbRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Repository/DbRepository.php b/library/Icinga/Repository/DbRepository.php index 5a8fdf9d1..3f8b604f0 100644 --- a/library/Icinga/Repository/DbRepository.php +++ b/library/Icinga/Repository/DbRepository.php @@ -298,7 +298,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable, } elseif (is_string($table)) { $table = (strpos($table, $prefix) === false ? $prefix : '') . $table; } 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; @@ -331,7 +331,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable, $table = str_replace($prefix, '', $table); } } 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;