Skip to content

Commit

Permalink
🩹 Fix calling custom types (Fixes #217) (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Feb 29, 2024
1 parent 03666a9 commit 9d14f55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ public function __call($method, $arguments)
}
}

if ($type = $this->getFieldType($method)) {
$name = array_shift($arguments);

return $this->addField($name, $type, ...$arguments);
}

return parent::__call($method, $arguments);
}
}

0 comments on commit 9d14f55

Please sign in to comment.