Skip to content

Commit d96e791

Browse files
committed
chore: bumps dependencies
1 parent e98f74b commit d96e791

File tree

6 files changed

+8
-18
lines changed

6 files changed

+8
-18
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"license": "MIT",
1414
"require": {
1515
"php": "^8.2.0",
16-
"nikic/php-parser": "^5.1.0",
17-
"pestphp/pest": "^3.0.0",
18-
"symfony/finder": "^7.1.4"
16+
"nikic/php-parser": "^5.6.1",
17+
"pestphp/pest": "^3.8.3",
18+
"symfony/finder": "^7.3.2"
1919
},
2020
"autoload": {
2121
"psr-4": {
@@ -28,7 +28,7 @@
2828
}
2929
},
3030
"require-dev": {
31-
"pestphp/pest-dev-tools": "^3.0.0"
31+
"pestphp/pest-dev-tools": "^3.4.0"
3232
},
3333
"minimum-stability": "dev",
3434
"prefer-stable": true,

phpstan.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
- vendor/ergebnis/phpstan-rules/rules.neon
4-
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
5-
61
parameters:
72
level: max
83
paths:
94
- src
105

11-
checkMissingIterableValueType: true
12-
checkGenericClassInNonGenericObjectType: false
136
reportUnmatchedIgnoredErrors: true
147

158
ignoreErrors:
16-
- "#is not allowed to extend#"
17-
- "#has a nullable return type declaration.#"
18-
- "#but since the containing class is abstract, it should be.#"
199
- "#beforeTraverse\\(\\) should be compatible with return type#"
2010
- "#enterNode\\(\\) should#"

src/Analyzer/ClassMethodAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function containsTestAttribute(ClassMethod $classMethod): bool
6868
*/
6969
public function reduceAttrGroups(ClassMethod $classMethod): array
7070
{
71-
$attributeNames = array_map(fn ($attrGroup): array => $this->getAttributesValues($attrGroup->attrs), $classMethod->getAttrGroups());
71+
$attributeNames = array_map(fn (\PhpParser\Node\AttributeGroup $attrGroup): array => $this->getAttributesValues($attrGroup->attrs), $classMethod->getAttrGroups());
7272

7373
// Flatten the array
7474
return array_reduce($attributeNames, fn ($array, $item): array => array_merge($array, $item), []);

src/Rules/AttributeAnnotations/ConvertDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function getArguments(array $phpDocTags, array $attributeGroups): arra
2121
$phpDocTags[TagKey::DATA_PROVIDER_EXTERNAL] ??
2222
[];
2323

24-
return array_map(fn ($datasetName): Arg => new Arg(new String_($datasetName)), $dataProviders);
24+
return array_map(fn (string $datasetName): Arg => new Arg(new String_($datasetName)), $dataProviders);
2525
}
2626

2727
protected function getMethodCallName(): string

src/Rules/AttributeAnnotations/ConvertDepends.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function getArguments(array $phpDocTags, array $attributeGroups): arra
1717
{
1818
$depends = $attributeGroups[AttributeKey::DEPENDS] ?? ($phpDocTags[TagKey::DEPENDS] ?? []);
1919

20-
return array_map(fn ($testName): Arg => new Arg(new String_($this->methodNameToDescription($testName))), $depends);
20+
return array_map(fn (string $testName): Arg => new Arg(new String_($this->methodNameToDescription($testName))), $depends);
2121
}
2222

2323
protected function getMethodCallName(): string

src/Rules/AttributeAnnotations/ConvertGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function getArguments(array $phpDocTags, array $attributeGroups): arra
1717
{
1818
$groups = $attributeGroups[AttributeKey::GROUP] ?? ($phpDocTags[TagKey::GROUP] ?? []);
1919

20-
return array_map(fn ($groupName): Arg => new Arg(new String_($groupName)), $groups);
20+
return array_map(fn (string $groupName): Arg => new Arg(new String_($groupName)), $groups);
2121
}
2222

2323
protected function getMethodCallName(): string

0 commit comments

Comments
 (0)