Skip to content

Commit

Permalink
Merge branch '0.12' into 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Aug 17, 2020
2 parents ff62876 + 66afe4b commit cab464d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Annotation/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class Access implements Annotation
/**
* Field access.
*
* @required
* @Required
*
* @var string
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Annotation/Arg.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class Arg implements Annotation
/**
* Argument name.
*
* @required
* @Required
*
* @var string
*/
Expand All @@ -31,7 +31,7 @@ final class Arg implements Annotation
/**
* Argument type.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class Deprecated implements Annotation
/**
* The deprecation reason.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Description.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class Description implements Annotation
/**
* The object description.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Annotation/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class Field implements Annotation
/**
* Field Type.
*
* @required
*
* @var string
*/
public $type;
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/FieldsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class FieldsBuilder implements Annotation
/**
* Builder name.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/IsPublic.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class IsPublic implements Annotation
/**
* Field publicity.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Relay/Edge.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class Edge extends Type
/**
* Edge Node type.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/TypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class TypeInterface implements Annotation
/**
* Resolver type for interface.
*
* @required
* @Required
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/Union.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class Union implements Annotation
/**
* Union types.
*
* @required
* @Required
*
* @var array<string>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Parser/AnnotationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ private static function getGraphQLFieldsFromProviders(string $namespace, string
$currentValue = \sprintf("service('%s')", self::formatNamespaceForExpression($className));
$providerFields = self::getGraphQLFieldsFromAnnotations($namespace, $filteredMethods, false, true, $currentValue, $annotationName);
foreach ($providerFields as $fieldName => $fieldConfig) {
if ($providerAnnotation->prefix) {
if (isset($providerAnnotation->prefix)) {
$fieldName = \sprintf('%s%s', $providerAnnotation->prefix, $fieldName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class InvalidAccess
{
/**
* @GQL\Access()
* @GQL\Access("access")
*/
protected $field;
}

0 comments on commit cab464d

Please sign in to comment.