Skip to content

Commit 09a1b58

Browse files
authored
Merge branch '1.12.x' into patch-1
2 parents fe15fb8 + 11e0ab6 commit 09a1b58

File tree

255 files changed

+4115
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+4115
-929
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,13 @@ jobs:
248248
cd e2e/bad-exclude-paths
249249
OUTPUT=$(../../bin/phpstan analyse -c ignoreReportUnmatchedFalse.neon)
250250
echo "$OUTPUT"
251+
- script: |
252+
cd e2e/bug-11826
253+
composer install
254+
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan")
255+
echo "$OUTPUT"
256+
../bashunit -a contains 'Child process error (exit code 255): PHP Fatal error' "$OUTPUT"
257+
../bashunit -a contains 'Result is incomplete because of severe errors.' "$OUTPUT"
251258
252259
steps:
253260
- name: "Checkout"
@@ -268,7 +275,7 @@ jobs:
268275
run: "patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"
269276

270277
- name: "Install bashunit"
271-
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.13.0"
278+
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.17.0"
272279

273280
- name: "Test"
274281
run: "${{ matrix.script }}"
@@ -308,6 +315,9 @@ jobs:
308315
cd e2e/discussion-11362
309316
composer install
310317
../../bin/phpstan
318+
- script: |
319+
cd e2e/bug-11819
320+
../../bin/phpstan
311321
312322
steps:
313323
- name: "Checkout"

.github/workflows/issue-bot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ jobs:
106106
attempt_limit: 5
107107
attempt_delay: 1000
108108

109+
- name: "Add level 10 config file"
110+
run: "cp issue-bot/config.level10.neon conf/"
111+
109112
- name: "Run PHPStan"
110113
working-directory: "issue-bot"
111114
timeout-minutes: 5

.github/workflows/phar.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,14 @@ jobs:
104104
- name: "Delete checksum PHAR"
105105
run: "rm tmp/phpstan.phar"
106106

107-
integration-tests:
108-
if: github.event_name == 'pull_request'
109-
needs: compiler-tests
110-
uses: phpstan/phpstan/.github/workflows/integration-tests.yml@1.12.x
111-
with:
112-
ref: 1.12.x
113-
phar-checksum: ${{needs.compiler-tests.outputs.checksum}}
107+
#
108+
# integration-tests:
109+
# if: github.event_name == 'pull_request'
110+
# needs: compiler-tests
111+
# uses: phpstan/phpstan/.github/workflows/integration-tests.yml@1.12.x
112+
# with:
113+
# ref: 1.12.x
114+
# phar-checksum: ${{needs.compiler-tests.outputs.checksum}}
114115

115116
extension-tests:
116117
if: github.event_name == 'pull_request'

.github/workflows/spelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: "Check for typos"
21-
uses: "crate-ci/typos@v1.24.6"
21+
uses: "crate-ci/typos@v1.26.0"
2222
with:
2323
files: "README.md src/"

build/baseline-8.0.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Strict comparison using \\=\\=\\= between array and false will always evaluate to false\\.$#"
4+
message: "#^Strict comparison using \\=\\=\\= between list<callable\\(string\\): void> and false will always evaluate to false\\.$#"
55
count: 1
66
path: ../src/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocator.php
77

build/enum-adapter-errors.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ parameters:
140140
count: 1
141141
path: ../src/Reflection/ClassReflection.php
142142

143+
-
144+
message: '#^PHPDoc tag @phpstan\-assert\-if\-true for \$this\-\>reflection contains unknown class PHPStan\\BetterReflection\\Reflection\\Adapter\\ReflectionEnum\.$#'
145+
count: 1
146+
path: ../src/Reflection/ClassReflection.php
147+
143148
-
144149
message: "#^Method PHPStan\\\\Reflection\\\\Php\\\\BuiltinMethodReflection\\:\\:getDeclaringClass\\(\\) has invalid return type PHPStan\\\\BetterReflection\\\\Reflection\\\\Adapter\\\\ReflectionEnum\\.$#"
145150
count: 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^PHPDoc tag @var with type array\\<callable\\>\\|false is not subtype of native type array\\.$#"
4+
message: "#^PHPDoc tag @var with type list\\<callable\\(string\\): void\\>\\|false is not subtype of native type list\\<callable\\(string\\): void\\>\\.$#"
55
count: 2
66
path: ../src/Command/CommandHelper.php
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^PHPDoc tag @var with type array\\<callable\\(\\)\\: mixed\\>\\|false is not subtype of native type list\\<callable\\(string\\)\\: void\\>\\|false\\.$#"
5-
count: 2
6-
path: ../src/Command/CommandHelper.php
7-
83
-
94
message: '#^Parameter \#1 \$array \(list<PHPStan\\Type\\Type>\) of array_values is already a list, call has no effect\.$#'
105
path: ../src/Type/TypeCombinator.php

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"nette/utils": "^3.2.5",
2525
"nikic/php-parser": "^4.19.4",
2626
"ondram/ci-detector": "^3.4.0",
27-
"ondrejmirtes/better-reflection": "6.25.0.19",
27+
"ondrejmirtes/better-reflection": "6.25.0.21",
2828
"phpstan/php-8-stubs": "0.3.111",
29-
"phpstan/phpdoc-parser": "1.32.0",
29+
"phpstan/phpdoc-parser": "1.33.0",
3030
"psr/http-message": "^1.1",
3131
"react/async": "^3",
3232
"react/child-process": "^0.7",
@@ -123,6 +123,9 @@
123123
"nette/neon": [
124124
"patches/NetteNeonStringNode.patch",
125125
"patches/NeonParser.patch"
126+
],
127+
"react/http": [
128+
"patches/Sender.patch"
126129
]
127130
}
128131
},

composer.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)