Properly cast $level

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1558/head
Louis Chemineau 2023-01-04 15:24:40 +01:00
rodzic e593bfa8a6
commit df8d5fdad4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -185,7 +185,7 @@ class AP {
*/
public function getItemFromData(array $data, ACore $parent = null, int $level = 0): ACore {
if (++$level > self::REDUNDANCY_LIMIT) {
throw new RedundancyLimitException($level);
throw new RedundancyLimitException((string)$level);
}
$item = $this->getSimpleItemFromData($data);