Skip to content

Commit

Permalink
Fixed element type bugs
Browse files Browse the repository at this point in the history
Fixes #32
  • Loading branch information
brandonkelly committed Mar 6, 2024
1 parent 37237da commit d66f772
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/generators/ElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ private function elementClassMethods(): array
'pluralLowerDisplayName' => sprintf('return %s;', $this->messagePhp($pluralLowerDisplayName)),
'refHandle' => sprintf("return '%s';", strtolower($this->className)),
'trackChanges' => 'return true;',
'hasContent' => 'return true;',
'hasTitles' => 'return true;',
'hasUris' => 'return true;',
'isLocalized' => 'return false;',
Expand Down Expand Up @@ -364,7 +363,7 @@ private function writeConditionClass(): void
private function conditionClassMethods(): array
{
return [
'conditionRuleTypes' => <<<PHP
'selectableConditionRules' => <<<PHP
return array_merge(parent::conditionRuleTypes(), [
// ...
]);
Expand Down

0 comments on commit d66f772

Please # to comment.