kopia lustrzana https://github.com/nextcloud/social
Properly cast $level
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1558/head
rodzic
e593bfa8a6
commit
df8d5fdad4
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue