Skip to content

Commit f4c3963

Browse files
authored
Merge branch 'master' into patch-2
2 parents 5a1dced + 09d8ad8 commit f4c3963

File tree

11 files changed

+11
-13
lines changed

11 files changed

+11
-13
lines changed

src/Annotation/Access.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Access implements Annotation
1515
/**
1616
* Field access.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/

src/Annotation/Arg.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Arg implements Annotation
1515
/**
1616
* Argument name.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/
@@ -31,7 +31,7 @@ final class Arg implements Annotation
3131
/**
3232
* Argument type.
3333
*
34-
* @required
34+
* @Required
3535
*
3636
* @var string
3737
*/

src/Annotation/Deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Deprecated implements Annotation
1515
/**
1616
* The deprecation reason.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/

src/Annotation/Description.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Description implements Annotation
1515
/**
1616
* The object description.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/

src/Annotation/Field.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ class Field implements Annotation
2222
/**
2323
* Field Type.
2424
*
25-
* @required
26-
*
2725
* @var string
2826
*/
2927
public string $type;

src/Annotation/FieldsBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class FieldsBuilder implements Annotation
1515
/**
1616
* Builder name.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/

src/Annotation/IsPublic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class IsPublic implements Annotation
1515
/**
1616
* Field publicity.
1717
*
18-
* @required
18+
* @Required
1919
*
2020
* @var string
2121
*/

src/Annotation/Relay/Edge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class Edge extends Type
1717
/**
1818
* Edge Node type.
1919
*
20-
* @required
20+
* @Required
2121
*
2222
* @var string
2323
*/

src/Annotation/TypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class TypeInterface implements Annotation
2222
/**
2323
* Resolver type for interface.
2424
*
25-
* @required
25+
* @Required
2626
*
2727
* @var string
2828
*/

src/Config/Parser/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ private static function getGraphQLFieldsFromProviders(GraphClass $graphClass, st
744744
$currentValue = sprintf("service('%s')", self::formatNamespaceForExpression($providerMetadata->getName()));
745745
$providerFields = self::getGraphQLTypeFieldsFromAnnotations($graphClass, $methods, $expectedAnnotation, $currentValue);
746746
foreach ($providerFields as $fieldName => $fieldConfig) {
747-
if ($providerAnnotation->prefix) {
747+
if (isset($providerAnnotation->prefix)) {
748748
$fieldName = sprintf('%s%s', $providerAnnotation->prefix, $fieldName);
749749
}
750750

tests/Config/Parser/fixtures/annotations/Invalid/InvalidAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class InvalidAccess
1313
{
1414
/**
15-
* @GQL\Access()
15+
* @GQL\Access("access")
1616
*/
1717
protected string $field;
1818
}

0 commit comments

Comments
 (0)