Skip to content

Commit be004e4

Browse files
committed
Fix PHPStan symlink recursion with */vendor/* wildcard pattern
Use fnmatch wildcard pattern to exclude all vendor directories at any depth, preventing infinite recursion through symlinked packages. Also add reportUnmatched: false to test method pattern.
1 parent d6c0bc3 commit be004e4

File tree

21 files changed

+42
-21
lines changed

21 files changed

+42
-21
lines changed

src/store/src/Bridge/AzureSearch/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/Cache/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/ChromaDb/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/ClickHouse/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/Cloudflare/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/Elasticsearch/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/ManticoreSearch/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/MariaDb/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/Meilisearch/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

src/store/src/Bridge/Milvus/phpstan.dist.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ parameters:
66
paths:
77
- ./
88
excludePaths:
9-
- ./vendor
9+
- */vendor/*
1010
- ./Tests
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
1414
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
15+
reportUnmatched: false
1516
-
1617
identifier: missingType.iterableValue
1718
path: Tests/*

0 commit comments

Comments
 (0)