Skip to content

Commit 18fc5a7

Browse files
committed
fix: allow adding properties starting with 'set'
Now legitimate properties with prefix 'set' are cut. Such as 'settled', 'settings', 'setup'... Also, all setters are cut out despite the presence of an explicit 'Field' indication. This shouldn't break backwards compatibility because it requires explicitly specifying 'Field' attribute.
1 parent 76c0ef9 commit 18fc5a7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/FieldsBuilder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,6 @@ private function getFieldsByMethodAnnotations(
444444
$methodName = $refMethod->getName();
445445

446446
if ($queryAnnotation instanceof Field) {
447-
if (str_starts_with($methodName, 'set')) {
448-
continue;
449-
}
450447
$for = $queryAnnotation->getFor();
451448
if ($typeName && $for && ! in_array($typeName, $for)) {
452449
continue;

0 commit comments

Comments
 (0)