Skip to content

Commit 6f0aa9e

Browse files
Update doctrine/coding-standard requirement from ^8.2 to ^9.0 (#83)
* Update doctrine/coding-standard requirement from ^8.2 to ^8.2 || ^9.0 Updates the requirements on [doctrine/coding-standard](https://github.com/doctrine/coding-standard) to permit the latest version. - [Release notes](https://github.com/doctrine/coding-standard/releases) - [Commits](doctrine/coding-standard@8.2.0...9.0.0) --- updated-dependencies: - dependency-name: doctrine/coding-standard dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * Fix CS Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
1 parent a260656 commit 6f0aa9e

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"webonyx/graphql-php": "^14.0"
1919
},
2020
"require-dev": {
21-
"doctrine/coding-standard": "^8.2",
21+
"doctrine/coding-standard": "^9.0",
2222
"infection/infection": "^0.23.0",
2323
"phpstan/extension-installer": "^1.1",
2424
"phpstan/phpstan": "0.12.90",

src/Exception/InvalidArgument.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public static function invalidNameFormat(string $invalidName): self
2323
return new self(sprintf('Name "%s" does not match pattern "%s"', $invalidName, TypeBuilder::VALID_NAME_PATTERN));
2424
}
2525

26-
/**
27-
* @param mixed $invalidValue
28-
*/
26+
/** @param mixed $invalidValue */
2927
public static function valueNotIso8601Compliant($invalidValue): self
3028
{
3129
return new self(sprintf('DateTime type expects input value to be ISO 8601 compliant. Given invalid value "%s"', (string) $invalidValue));

src/Type/DateTimeType.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ public function __construct()
4848
);
4949
}
5050

51-
/**
52-
* @param mixed $value
53-
*/
51+
/** @param mixed $value */
5452
public function serialize($value): string
5553
{
5654
if (! $value instanceof DateTimeInterface) {
@@ -62,9 +60,7 @@ public function serialize($value): string
6260
return $value->format(DateTimeInterface::ATOM);
6361
}
6462

65-
/**
66-
* @param mixed $value
67-
*/
63+
/** @param mixed $value */
6864
public function parseValue($value): DateTimeImmutable
6965
{
7066
if (! is_string($value)) {
@@ -78,11 +74,7 @@ public function parseValue($value): DateTimeImmutable
7874
return new DateTimeImmutable($value);
7975
}
8076

81-
/**
82-
* @param mixed[]|null $variables
83-
*
84-
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
85-
*/
77+
/** @param mixed[]|null $variables */
8678
public function parseLiteral(Node $valueNode, ?array $variables = null): ?DateTimeImmutable
8779
{
8880
if (! $valueNode instanceof StringValueNode) {

0 commit comments

Comments
 (0)