Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
operator precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Mar 6, 2019
1 parent e82e883 commit ae5a5ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ComposableElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ final private function validateChildrenRule(
$child = $this->children->get($index);
assert($child instanceof :xhp);
$categories = $child->__xhpCategoryDeclaration();
if ($categories[$category] ?? 0 === 0) {
if (($categories[$category] ?? 0) === 0) {
return tuple(false, $index);
}
return tuple(true, $index + 1);
Expand Down

0 comments on commit ae5a5ac

Please sign in to comment.