Skip to content

Commit

Permalink
Fix php-7.2 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Nenadal <nenadalm@gmail.com>
  • Loading branch information
nenadalm committed Feb 18, 2020
1 parent 443d39b commit 51efaf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ACL/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/ACL/RuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 51efaf8

Please sign in to comment.