From 51efaf8ff3e74eadd33eb312726f523837f7253e Mon Sep 17 00:00:00 2001 From: Miloslav Nenadal Date: Tue, 18 Feb 2020 10:06:49 +0100 Subject: [PATCH] Fix php-7.2 compatibility Signed-off-by: Miloslav Nenadal --- lib/ACL/Rule.php | 2 +- lib/ACL/RuleManager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ACL/Rule.php b/lib/ACL/Rule.php index aa7e42573..6245ba35a 100644 --- a/lib/ACL/Rule.php +++ b/lib/ACL/Rule.php @@ -125,7 +125,7 @@ static function xmlDeserialize(Reader $reader): Rule { -1, (int)$elements[self::MASK], (int)$elements[self::PERMISSIONS], - $elements[self::INHERIT] === 'true', + $elements[self::INHERIT] === 'true' ); } diff --git a/lib/ACL/RuleManager.php b/lib/ACL/RuleManager.php index cb4ac380f..b1407b429 100644 --- a/lib/ACL/RuleManager.php +++ b/lib/ACL/RuleManager.php @@ -44,7 +44,7 @@ private function createRule(array $data): ?Rule { (int)$data['fileid'], (int)$data['mask'], (int)$data['permissions'], - (bool)$data['inherit'], + (bool)$data['inherit'] ); } else { return null;