- A lot of bugfixes, mainly with escaping (still working on it to get 100% coverage)

This commit is contained in:
mcndave committed 2021-03-15 13:42:52 +00:00
1 parent e3d0e45a4e
commit 3905047111
8 files changed
+91 -126

No files matched your search

+3 -3
View File
@@ -11,6 +11,8 @@ class FieldDefinition {
public bool $builtIn;
public string $name;
public string $type;
public array $tags;
@@ -115,9 +117,7 @@ class FieldDefinition {
protected function getFieldTag() : ? Field
{
$field = array_filter($this->tags, function($item) {
return $item['object'] instanceof Field;
});
$field = array_filter($this->tags, fn($item) => $item['object'] instanceof Field);
return array_pop($field)['object'];
}