Skip to content

Commit 4d2cbd3

Browse files
committed
Fix a typo.
1 parent a95a1a9 commit 4d2cbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Type/Object/PageArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function getName()
1616

1717
public function getDescription()
1818
{
19-
return 'A WireArray that stores PageTypes';
19+
return 'A WireArray that stores Pages';
2020
}
2121

2222
public function build($config)

src/Type/Object/TemplatedPageType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function build($config)
4141
$config->applyInterface(new PageInterfaceType());
4242
foreach ($this->template->fields as $field) {
4343
if (!$legalFields->has($field)) continue;
44-
if ($field->flags & Field::flagGlobal) continue; // global fields are already added via PageTypeInterface
44+
if ($field->flags & Field::flagGlobal) continue; // global fields are already added via PageInterfaceType
4545
$className = "\\ProcessWire\\GraphQL\\Field\\Page\\Fieldtype\\" . $field->type->className();
4646
if (!class_exists($className)) continue;
4747
$config->addField(new $className($field));

0 commit comments

Comments
 (0)