diff --git a/composer.json b/composer.json index e8be65a..911e110 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "webonyx/graphql-php": "^14.0" }, "require-dev": { - "doctrine/coding-standard": "^8.2", + "doctrine/coding-standard": "^9.0", "infection/infection": "^0.23.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "0.12.90", diff --git a/src/Exception/InvalidArgument.php b/src/Exception/InvalidArgument.php index ca13ab4..ff5fe9f 100644 --- a/src/Exception/InvalidArgument.php +++ b/src/Exception/InvalidArgument.php @@ -23,9 +23,7 @@ public static function invalidNameFormat(string $invalidName): self return new self(sprintf('Name "%s" does not match pattern "%s"', $invalidName, TypeBuilder::VALID_NAME_PATTERN)); } - /** - * @param mixed $invalidValue - */ + /** @param mixed $invalidValue */ public static function valueNotIso8601Compliant($invalidValue): self { return new self(sprintf('DateTime type expects input value to be ISO 8601 compliant. Given invalid value "%s"', (string) $invalidValue)); diff --git a/src/Type/DateTimeType.php b/src/Type/DateTimeType.php index 8c202fb..3deff47 100644 --- a/src/Type/DateTimeType.php +++ b/src/Type/DateTimeType.php @@ -48,9 +48,7 @@ public function __construct() ); } - /** - * @param mixed $value - */ + /** @param mixed $value */ public function serialize($value): string { if (! $value instanceof DateTimeInterface) { @@ -62,9 +60,7 @@ public function serialize($value): string return $value->format(DateTimeInterface::ATOM); } - /** - * @param mixed $value - */ + /** @param mixed $value */ public function parseValue($value): DateTimeImmutable { if (! is_string($value)) { @@ -78,11 +74,7 @@ public function parseValue($value): DateTimeImmutable return new DateTimeImmutable($value); } - /** - * @param mixed[]|null $variables - * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint - */ + /** @param mixed[]|null $variables */ public function parseLiteral(Node $valueNode, ?array $variables = null): ?DateTimeImmutable { if (! $valueNode instanceof StringValueNode) {