Skip to content

Commit c743db0

Browse files
authored
Merge branch '2.1.x' into Assert-and-throws-are-side-effects
2 parents 36f05c7 + 33dc757 commit c743db0

File tree

108 files changed

+1999
-509
lines changed

Some content is hidden

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

108 files changed

+1999
-509
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ jobs:
233233
cd e2e/bug-11857
234234
composer install
235235
../../bin/phpstan
236+
- script: |
237+
cd e2e/result-cache-meta-extension
238+
composer install
239+
../../bin/phpstan -vvv
240+
../../bin/phpstan -vvv --fail-without-result-cache
241+
echo 'modified-hash' > hash.txt
242+
OUTPUT=$(../bashunit -a exit_code "2" "../../bin/phpstan -vvv --fail-without-result-cache")
243+
echo "$OUTPUT"
244+
../bashunit -a matches "Note: Using configuration file .+phpstan.neon." "$OUTPUT"
245+
../bashunit -a contains 'Result cache not used because the metadata do not match: metaExtensions' "$OUTPUT"
236246
237247
steps:
238248
- name: "Checkout"

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"hoa/compiler": "3.17.08.08",
1616
"hoa/exception": "^1.0",
1717
"hoa/file": "1.17.07.11",
18-
"jetbrains/phpstorm-stubs": "dev-master#db675e059f57071e8209c99075128b92d8a727e7",
18+
"jetbrains/phpstorm-stubs": "dev-master#62a683f61d9ea11ef8caf8b2ad54e59e92b2c670",
1919
"nette/bootstrap": "^3.0",
2020
"nette/di": "^3.1.4",
2121
"nette/neon": "3.3.4",
2222
"nette/php-generator": "3.6.9",
2323
"nette/schema": "^1.2.2",
2424
"nette/utils": "^3.2.5",
25-
"nikic/php-parser": "^5.3.0",
25+
"nikic/php-parser": "^5.4.0",
2626
"ondram/ci-detector": "^3.4.0",
27-
"ondrejmirtes/better-reflection": "6.49.0.0",
27+
"ondrejmirtes/better-reflection": "6.51.0.1",
2828
"phpstan/php-8-stubs": "0.4.9",
2929
"phpstan/phpdoc-parser": "2.0.0",
3030
"psr/http-message": "^1.1",

composer.lock

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

conf/config.level0.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
parameters:
22
customRulesetUsed: false
33

4-
conditionalTags:
5-
PHPStan\Rules\Properties\UninitializedPropertyRule:
6-
phpstan.rules.rule: %checkUninitializedProperties%
7-
84
rules:
95
- PHPStan\Rules\Api\ApiInstanceofRule
106
- PHPStan\Rules\Api\ApiInstanceofTypeRule
@@ -218,9 +214,6 @@ services:
218214
tags:
219215
- phpstan.rules.rule
220216

221-
-
222-
class: PHPStan\Rules\Properties\UninitializedPropertyRule
223-
224217
-
225218
class: PHPStan\Rules\Properties\WritingToReadOnlyPropertiesRule
226219
arguments:
@@ -250,11 +243,6 @@ services:
250243
tags:
251244
- phpstan.rules.rule
252245

253-
-
254-
class: PHPStan\Reflection\ConstructorsHelper
255-
arguments:
256-
additionalConstructors: %additionalConstructors%
257-
258246
-
259247
class: PHPStan\Rules\Keywords\RequireFileExistsRule
260248
arguments:

conf/config.level3.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ rules:
2222
- PHPStan\Rules\Properties\ReadOnlyPropertyAssignRefRule
2323
- PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRefRule
2424
- PHPStan\Rules\Properties\SetNonVirtualPropertyHookAssignRule
25-
- PHPStan\Rules\Properties\ShortGetPropertyHookReturnTypeRule
2625
- PHPStan\Rules\Properties\TypesAssignedToPropertiesRule
2726
- PHPStan\Rules\Variables\ParameterOutAssignedTypeRule
2827
- PHPStan\Rules\Variables\ParameterOutExecutionEndTypeRule

conf/config.neon

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ conditionalTags:
211211
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
212212
PHPStan\Rules\Exceptions\MissingCheckedExceptionInPropertyHookThrowsRule:
213213
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
214+
PHPStan\Rules\Properties\UninitializedPropertyRule:
215+
phpstan.rules.rule: %checkUninitializedProperties%
214216

215217
services:
216218
-
@@ -320,11 +322,6 @@ services:
320322
tags:
321323
- phpstan.parser.richParserNodeVisitor
322324

323-
-
324-
class: PHPStan\Parser\PropertyHookNameVisitor
325-
tags:
326-
- phpstan.parser.richParserNodeVisitor
327-
328325
-
329326
class: PHPStan\Node\Printer\ExprPrinter
330327

@@ -739,6 +736,11 @@ services:
739736
tags:
740737
- phpstan.broker.dynamicMethodReturnTypeExtension
741738

739+
-
740+
class: PHPStan\Reflection\ConstructorsHelper
741+
arguments:
742+
additionalConstructors: %additionalConstructors%
743+
742744
-
743745
class: PHPStan\Reflection\RequireExtension\RequireExtendsMethodsClassReflectionExtension
744746

@@ -991,6 +993,9 @@ services:
991993
-
992994
class: PHPStan\Rules\Methods\MethodParameterComparisonHelper
993995

996+
-
997+
class: PHPStan\Rules\Methods\MethodVisibilityComparisonHelper
998+
994999
-
9951000
class: PHPStan\Rules\MissingTypehintCheck
9961001
arguments:
@@ -1039,6 +1044,9 @@ services:
10391044
reportMagicProperties: %reportMagicProperties%
10401045
checkDynamicProperties: %checkDynamicProperties%
10411046

1047+
-
1048+
class: PHPStan\Rules\Properties\UninitializedPropertyRule
1049+
10421050
-
10431051
class: PHPStan\Rules\Properties\LazyReadWritePropertiesExtensionProvider
10441052

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"autoload-dev": {
3+
"classmap": ["src/"]
4+
}
5+
}

e2e/result-cache-meta-extension/composer.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
initial-hash

0 commit comments

Comments
 (0)