Skip to content

Commit b97d77c

Browse files
Update dependency squizlabs/php_codesniffer to v4 (#14)
* Update dependency squizlabs/php_codesniffer to v4 * fix phpcs issues --------- Co-authored-by: text-html-renovate[bot] <182508163+text-html-renovate[bot]@users.noreply.github.com> Co-authored-by: Mathieu Rochette <mathieu@rochette.cc>
1 parent a031a87 commit b97d77c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"require-dev": {
2626
"php": "^8.2",
27-
"squizlabs/php_codesniffer": "^3.6",
27+
"squizlabs/php_codesniffer": "^4.0",
2828
"slevomat/coding-standard": "^8.0",
2929
"phpstan/phpstan": "^1.12",
3030
"phpstan/extension-installer": "^1.1",

src/Identity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final public static function of(mixed ...$args): self {
2121

2222
/**
2323
* @param self|callable():self $ref
24-
* @param array-key|null $key
24+
* @phpstan-param array-key|null $key
2525
*/
2626
final protected static function resolve(callable $ref, int|string|null $key): self {
2727
if ($key === null) {
@@ -50,15 +50,15 @@ final protected static function resolve(callable $ref, int|string|null $key): se
5050
}
5151

5252
/**
53-
* @return array-key
53+
* @phpstan-return array-key
5454
*/
5555
protected function identity(): int|string
5656
{
5757
return \serialize($this);
5858
}
5959

6060
/**
61-
* @return array-key|null
61+
* @phpstan-return array-key|null
6262
*/
6363
protected static function inputIdentity(mixed ...$args): int|string|null {
6464
return null;

0 commit comments

Comments
 (0)