Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce isDeprecated to CallableParametersAcceptor #3616

Closed
wants to merge 721 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
721 commits
Select commit Hold shift + click to select a range
8606348
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 6, 2024
f680629
IntersectionType - always describe list as list
ondrejmirtes Oct 6, 2024
069da3f
TypeNodeResolver - more specific array key type for lists
ondrejmirtes Oct 6, 2024
76b0a7d
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 6, 2024
7046180
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 6, 2024
7717291
[BCB] Remove `ConstantArrayType::slice()`
ondrejmirtes Oct 6, 2024
c77064a
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 6, 2024
f11d56e
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
bb19be5
Remove $isFinal dead-code in PhpFunctionReflection
staabm Oct 3, 2024
544101b
Fix stubs
ondrejmirtes Oct 7, 2024
8efc503
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
4bec8b2
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 7, 2024
244337e
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 7, 2024
b256d50
[BCB] Changed `TemplateType::isValidVariance()` return type to IsSupe…
ondrejmirtes Oct 7, 2024
8bd940b
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
f81bc5d
[BCB] Remove `Type::isSuperTypeOfWithReason()`, `Type::isSuperTypeOf(…
ondrejmirtes Oct 7, 2024
f240ebd
Do not comment on PRs on 2.0.x anymore
ondrejmirtes Oct 7, 2024
78ac54f
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
2fce656
Update changelog-2.0.md
ondrejmirtes Oct 7, 2024
97d5e89
Fix
ondrejmirtes Oct 7, 2024
8cfc080
UPGRADING.md: typo
Slamdunk Oct 7, 2024
676c934
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
268309d
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
f818ac5
Get rid of unnecessary `instanceof self` in `ConstantArrayType`
herndlm Oct 6, 2024
b37d269
Revert "Get rid of unnecessary `instanceof self` in `ConstantArrayType`"
ondrejmirtes Oct 7, 2024
57519cc
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 7, 2024
fca1268
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
28e2f26
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 7, 2024
e542a61
Fix
ondrejmirtes Oct 8, 2024
37f4e56
Update PHP 8 stubs
phpstan-bot Oct 8, 2024
14a3b36
Fix generate-function-metadata.php script
ondrejmirtes Oct 8, 2024
9d19cd0
Get rid of unnecessary `instanceof self` in `ConstantArrayType`
herndlm Oct 6, 2024
dddf984
Remove inefficient caching from `PhpMethodReflection` and `PhpFunctio…
staabm Oct 8, 2024
2f2d6a3
Cleanup - visitor already registered
ondrejmirtes Oct 8, 2024
19cd999
Fixed optimization
ondrejmirtes Oct 8, 2024
466ad51
Clean file cache from unused items
ondrejmirtes Oct 8, 2024
12a19b2
This was also used format
ondrejmirtes Oct 8, 2024
6628bcd
Update cache deletion logic
ondrejmirtes Oct 8, 2024
57c6588
Journal for used generated containers
ondrejmirtes Oct 8, 2024
22febaa
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 8, 2024
338d6f9
Update nikic/php-parser
ondrejmirtes Oct 9, 2024
ca1e144
Revert "Fix generate-function-metadata.php script"
ondrejmirtes Oct 9, 2024
3316a15
Update PHP 8 stubs
phpstan-bot Oct 9, 2024
44a28cf
Update PhpStorm stubs
ondrejmirtes Oct 9, 2024
2b30e90
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 9, 2024
35b532a
Remove old containers from the journal
ondrejmirtes Oct 9, 2024
a883c66
Fix CS
ondrejmirtes Oct 9, 2024
5d59d11
Merge branch '1.12.x' into 2.0.x
jiripudil Oct 9, 2024
89e2d80
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 9, 2024
48f8c85
Move template-default.php to nsrt
ondrejmirtes Oct 9, 2024
4a8d584
Test template-default.php only on PHP 8+
ondrejmirtes Oct 9, 2024
ee6e0ef
Added regression test
staabm Oct 9, 2024
eed9282
Update simple-downgrader
ondrejmirtes Oct 9, 2024
cc8863a
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 11, 2024
728ae75
test: use bashunit -a exit_code to check for errors
Chemaclass Oct 3, 2024
b2a9ba4
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 11, 2024
ecf3f7d
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 12, 2024
99e5386
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 12, 2024
fff7c41
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 12, 2024
93126b4
Revert "Simulate level 10 in issue bot on 1.12.x"
ondrejmirtes Oct 12, 2024
a934639
Fix test
ondrejmirtes Oct 12, 2024
6cf2238
ArrayType::describe - explicit mixed should be stated explicitly
ondrejmirtes Oct 12, 2024
4007e65
Issue bot - let all comments about improved `ArrayType::describe()` t…
ondrejmirtes Sep 4, 2024
2de40d1
Revert "Issue bot - let all comments about improved `ArrayType::descr…
ondrejmirtes Oct 12, 2024
b3cd815
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 13, 2024
96bd303
Fix build
ondrejmirtes Oct 13, 2024
67fbfae
Refactor IntersectionType::describe()
ondrejmirtes Oct 12, 2024
70f319a
StubParser
ondrejmirtes Oct 13, 2024
b651a22
Fix tests
ondrejmirtes Oct 13, 2024
7ed2d67
Fix tests
ondrejmirtes Oct 13, 2024
0ce1ce5
Use StubParser more
ondrejmirtes Oct 13, 2024
8285a25
Fix tests
ondrejmirtes Oct 13, 2024
aefa588
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 13, 2024
1aec430
Fixed types
ondrejmirtes Oct 13, 2024
428ef84
Separate FileTypeMapper for StubPhpDocProvider
ondrejmirtes Oct 14, 2024
aa75de0
Fixed tests
ondrejmirtes Oct 14, 2024
fba5607
Fixed tests
ondrejmirtes Oct 14, 2024
cf39148
Do not run integration tests on PHAR for now
ondrejmirtes Oct 14, 2024
a63d9bd
Merge branch '1.12.x' into 2.0.x
ondrejmirtes Oct 14, 2024
d4596bc
Merge branch '1.12.x' into 2.0.x
ondrejmirtes Oct 14, 2024
c90d966
Upgrading notes about 1st party extensions
ondrejmirtes Oct 14, 2024
26b0347
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 14, 2024
87b0dcc
Update PhpStorm stubs
ondrejmirtes Oct 15, 2024
2f0fd85
Remove dead code
staabm Oct 16, 2024
79319b3
Update PHP 8 stubs
phpstan-bot Oct 18, 2024
e850baa
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 18, 2024
6e03294
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 18, 2024
748afdf
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 18, 2024
e62cbb2
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 18, 2024
4b3406e
Update PhpStorm stubs
ondrejmirtes Oct 22, 2024
d73acef
Fix build
ondrejmirtes Oct 22, 2024
7b8aadc
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 26, 2024
be76c67
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 26, 2024
b0df849
Fix CS
ondrejmirtes Oct 26, 2024
98f6aae
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Oct 26, 2024
3155acd
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 26, 2024
830b6d5
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 26, 2024
612ee60
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 28, 2024
5797c27
Update PhpStorm stubs
ondrejmirtes Oct 29, 2024
1615879
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 30, 2024
2c264f4
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Oct 30, 2024
6bd0a5f
Update PHP 8 stubs
phpstan-bot Nov 1, 2024
88d5b8c
Remove dead code in ConstantConditionRuleHelper
staabm Nov 2, 2024
991e155
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 4, 2024
fd3272c
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 4, 2024
1b4997e
Update PhpStorm stubs
ondrejmirtes Nov 5, 2024
65b60be
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 5, 2024
8019243
Support returning an array or a string in `count_chars()`
u01jmg3 Nov 1, 2024
211183c
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 6, 2024
71d01d6
xdebug_get_function_stack: fix signature
janedbal Nov 6, 2024
11998ed
Update changelog
ondrejmirtes Nov 6, 2024
6924e46
Utilize PHP version constraint from composer.json to narrow `PHP_*` c…
staabm Nov 6, 2024
6629655
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 6, 2024
8491b70
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 6, 2024
c3bb055
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 6, 2024
f4dbf86
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 6, 2024
2385a69
Reorganize new rules in changelog
ondrejmirtes Nov 7, 2024
3dc64a2
Update phpdoc-parser
ondrejmirtes Nov 7, 2024
e819f58
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 8, 2024
d44f4df
Fix after merge
ondrejmirtes Nov 8, 2024
a965e73
Use named argument in error for variadic types
ruudk Nov 8, 2024
7a69822
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 9, 2024
ac1f539
Fix after merge
ondrejmirtes Nov 9, 2024
9a9289b
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 9, 2024
a0b6b3b
Upgrade bashunit:0.18.0 for e2e tests
Chemaclass Nov 9, 2024
4d312be
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 10, 2024
59ef891
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 10, 2024
d2d137e
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 10, 2024
9eac54d
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 10, 2024
40be73a
Update UPGRADING.md
ondrejmirtes Nov 10, 2024
eb82cb2
Update changelog one last time
ondrejmirtes Nov 11, 2024
91d1b11
Update PHPStan extensions
ondrejmirtes Nov 11, 2024
ae38fe5
Remove changelog
ondrejmirtes Nov 11, 2024
6b52c1d
Update issue-bot
ondrejmirtes Nov 11, 2024
6517446
Upgrading guide will only be in phpstan/phpstan
ondrejmirtes Nov 11, 2024
1f411b9
Revert "Upgrading guide will only be in phpstan/phpstan"
ondrejmirtes Nov 11, 2024
edcc9e8
fix: check for existence of second arg in CountCharsFunctionDynamicRe…
canvural Nov 11, 2024
2da94f8
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 11, 2024
753fc4d
Fix resolving tentative return type
ondrejmirtes Nov 11, 2024
2f70d9f
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 11, 2024
2a200be
Fix test
ondrejmirtes Nov 11, 2024
b071fc7
Update PhpStorm stubs
ondrejmirtes Nov 12, 2024
7eef99a
Update PHP 8 stubs
phpstan-bot Nov 12, 2024
4edc329
Run integration tests again
ondrejmirtes Nov 12, 2024
3863033
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 12, 2024
9c06f13
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 12, 2024
d1a2795
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 13, 2024
6787df2
Update PHP 8 stubs
phpstan-bot Nov 13, 2024
5a132f1
Refactor ComposerPhpVersionFactory, ConstantResolver
staabm Nov 13, 2024
9717564
Utilize phpVersion.min+max in VersionCompareFunctionDynamicReturnType…
staabm Nov 13, 2024
f243636
More details php version information in diagnose
staabm Nov 13, 2024
f0b1080
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 13, 2024
cc4eb92
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 13, 2024
c79a752
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 15, 2024
91bdfb5
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 15, 2024
b80f208
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 16, 2024
65ddbcb
Fix after merge
ondrejmirtes Nov 16, 2024
c684505
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 17, 2024
30d20e6
FunctionCallParametersCheck: Add native parameter type
staabm Nov 17, 2024
a2eddcc
Update PhpStorm stubs
ondrejmirtes Nov 19, 2024
5ec1a78
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 19, 2024
4a6565e
3rd parameter of htmlentities|htmlspecialchars allows null
sreichel Nov 18, 2024
5b77fa6
Fix test
ondrejmirtes Nov 19, 2024
4d295ca
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 19, 2024
a34c2f4
Update curl_setopt string values and allow nullable
xPaw Nov 19, 2024
3b47bc0
bccomp: more precise return type
claudepache Nov 19, 2024
68d01a5
Update BetterReflection
ondrejmirtes Nov 19, 2024
17239c1
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 20, 2024
7fe388f
Merge branch '1.12.x' into 2.0.x
ondrejmirtes Nov 20, 2024
08df07a
Regenerate baseline
ondrejmirtes Nov 20, 2024
f92b17a
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 20, 2024
0e3c1dd
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 20, 2024
abe6f3c
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 20, 2024
78ac6f2
Fix subtracting enums inside `in_array`
janedbal Nov 20, 2024
c0bfae6
Refactor TryRemove/Accepts for DateTime|DateTimeImmutable and Excepti…
VincentLanglet Nov 22, 2024
d9082ec
Implement Scope->getPhpVersion()
staabm Nov 23, 2024
adcabb3
TooWidePropertyTypeRule: dont skip even always-read properties
janedbal Nov 20, 2024
993db81
Revert "TooWidePropertyTypeRule: dont skip even always-read properties"
ondrejmirtes Nov 24, 2024
e3867c0
Bleeding edge - check that values passed to array_sum/product are cas…
schlndh Nov 24, 2024
2d637da
`Scope::getPhpVersion()` allows array via phpVersion min+max config
staabm Nov 24, 2024
17a6158
Last value was not recognized when passing an associative array as an…
sayuprc Nov 25, 2024
bd0cf35
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 25, 2024
a0e007a
non-capturing catch support-detection is scope php-version dependent
staabm Nov 24, 2024
d35a2f4
Update PhpStorm stubs
ondrejmirtes Nov 26, 2024
96f721d
Update BetterReflection
ondrejmirtes Nov 26, 2024
17da151
Update BetterReflection
ondrejmirtes Nov 26, 2024
1c4c100
Update PHP 8 stubs
phpstan-bot Nov 27, 2024
5ec4762
PropertyHookType should not be prefixed in BetterReflection
ondrejmirtes Nov 27, 2024
265a39b
Update BetterReflection
ondrejmirtes Nov 27, 2024
1abeeb7
Un-finalize Printer
ondrejmirtes Nov 27, 2024
07d7c44
Revert "Un-finalize Printer"
ondrejmirtes Nov 27, 2024
fa9212f
Remove shortArraySyntax definiton on Printer::construct()
samsonasik Nov 27, 2024
68803e9
Update BetterReflection
ondrejmirtes Nov 27, 2024
e1b1cad
Fix CS
ondrejmirtes Nov 27, 2024
f9e84e0
Update PhpStorm stubs
ondrejmirtes Nov 27, 2024
62b2683
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 27, 2024
0a6e968
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 27, 2024
ae2b6a7
Update PHP 8 stubs
phpstan-bot Nov 28, 2024
c95367d
Update BetterReflection
ondrejmirtes Nov 28, 2024
86197c9
Update BetterReflection
ondrejmirtes Nov 28, 2024
e6dc705
Sanity checks around hooked properties in interfaces and classes
jakubtobiasz Nov 28, 2024
14d2bed
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 29, 2024
ca0da00
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 30, 2024
7070346
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 30, 2024
bd44528
skip param castable to X on non-arrays
schlndh Nov 30, 2024
9c29d63
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Nov 30, 2024
97ba50a
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Nov 30, 2024
f8d27d5
Update PHP 8 stubs
phpstan-bot Dec 2, 2024
90933b3
Remove incorrect CURLOPT_ACCEPT_ENCODING alias
xPaw Dec 2, 2024
28dfac8
Update PhpStorm stubs
ondrejmirtes Dec 3, 2024
fbcad41
Fix `fgetcsv` return type; never returns null
janedbal Dec 5, 2024
7b4c9af
Workaround bug in slevomat/coding-standard TypeNameMatchesFileName
DemvSteinbrink Dec 5, 2024
e2fa790
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Dec 9, 2024
9a718ee
Fix-GH-12021
jack-worman Dec 5, 2024
d6409fe
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 9, 2024
1a7cadb
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 9, 2024
89ddae6
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 9, 2024
f9c7bbd
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 9, 2024
f6a9d38
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 10, 2024
71b25bc
Fix after merge
ondrejmirtes Dec 10, 2024
5614170
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 10, 2024
3665635
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Dec 10, 2024
5711cdd
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Dec 11, 2024
961150e
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 11, 2024
966812e
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 11, 2024
ad4f0c0
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 11, 2024
e98335b
Fix apcu_cache_info and apcu_sma_info signatures
vindic Dec 12, 2024
e7e8093
Make these benevolent
ondrejmirtes Dec 12, 2024
627ad2a
Update BetterReflection
ondrejmirtes Dec 12, 2024
0edf18d
Added `strictRulesInstalled` parameter
staabm Dec 12, 2024
da3554e
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 15, 2024
5d07949
Remove incorrect doc leftover from 1.x
AJenbo Dec 15, 2024
de0553c
Update PhpStorm stubs
ondrejmirtes Dec 15, 2024
f2b357c
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 16, 2024
d3cf77b
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 17, 2024
5f12df7
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 17, 2024
21a47c8
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 17, 2024
ab3448a
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 17, 2024
4afa27b
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 17, 2024
1dc44d1
Merge remote-tracking branch 'origin/1.12.x' into 2.0.x
ondrejmirtes Dec 19, 2024
202dd81
Readonly classes cannot be combined with `#[AllowDynamicProperties]` …
staabm Dec 20, 2024
8fd217a
Named argument detection is scope-PHP version dependent
staabm Dec 20, 2024
fa95faf
Merge branch refs/heads/1.12.x into 2.0.x
phpstan-bot Dec 20, 2024
c5df243
Fix test
ondrejmirtes Dec 20, 2024
90e48fa
Attributes rules use `In*Node` virtual nodes for more precise Scope
ondrejmirtes Dec 20, 2024
f6c556f
Scope: use `scope->getConstant` instead
staabm Dec 20, 2024
7d11012
Bleeding edge - UnusedFunctionParametersCheck: report precise line
janedbal Dec 20, 2024
72b31c0
Update BetterReflection
ondrejmirtes Dec 20, 2024
46b9819
Prepare for 2.1.x-dev
ondrejmirtes Dec 21, 2024
da80fc7
Introduce isDeprecated to CallableParametersAcceptor
kamil-zacek Nov 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/workflows/apiref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ on:
workflow_dispatch:
push:
branches:
- "2.0.x"
- "2.1.x"
paths:
- 'src/**'
- 'composer.lock'
- 'apigen/**'
- '.github/workflows/apiref.yml'

env:
COMPOSER_ROOT_VERSION: "2.1.x-dev"

concurrency:
group: apigen-${{ github.ref }} # will be canceled on subsequent pushes in branch
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
push:
branches:
- "1.12.x"
- "2.0.x"
paths:
- 'src/**'
- '.github/workflows/backward-compatibility.yml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '.github/workflows/build-issue-bot.yml'
push:
branches:
- "1.12.x"
- "2.0.x"
paths:
- 'issue-bot/**'
- '.github/workflows/build-issue-bot.yml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '.github/workflows/changelog-generator.yml'
push:
branches:
- "1.12.x"
- "2.0.x"
paths:
- 'changelog-generator/**'
- '.github/workflows/changelog-generator.yml'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/checksum-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- '.github/workflows/checksum-phar.yml'
push:
branches:
- "1.12.x"
- "2.0.x"
paths:
- 'compiler/**'
- '.github/workflows/checksum-phar.yml'
Expand All @@ -34,7 +34,7 @@ jobs:
with:
repository: phpstan/phpstan
path: phpstan-dist
ref: 1.12.x
ref: 2.0.x

- name: "Get info"
id: info
Expand Down Expand Up @@ -98,14 +98,14 @@ jobs:
- name: "Composer dump"
run: "composer install --no-interaction --no-progress"
env:
COMPOSER_ROOT_VERSION: "1.12.x-dev"
COMPOSER_ROOT_VERSION: "2.0.x-dev"

- name: "Compile PHAR for checksum"
working-directory: "compiler/build"
run: "php box.phar compile --no-parallel"
env:
PHAR_CHECKSUM: "1"
COMPOSER_ROOT_VERSION: "1.12.x-dev"
COMPOSER_ROOT_VERSION: "2.0.x-dev"

- name: "Re-sign PHAR"
run: "php compiler/build/resign.php tmp/phpstan.phar"
Expand Down
119 changes: 71 additions & 48 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'issue-bot/**'
push:
branches:
- "1.12.x"
- "2.0.x"
paths-ignore:
- 'compiler/**'
- 'apigen/**'
Expand All @@ -23,36 +23,6 @@ concurrency:
cancel-in-progress: true

jobs:
result-cache-php-parser-e2e:
name: "Result cache PHP-Parser E2E test"

runs-on: ${{ matrix.operating-system }}
timeout-minutes: 60

strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.1"
extensions: mbstring
ini-values: memory_limit=256M

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

- name: "Tests"
run: |
git clone https://github.com/nikic/PHP-Parser.git tests/e2e/PHP-Parser && git -C tests/e2e/PHP-Parser checkout v3.1.5 && composer install --working-dir tests/e2e/PHP-Parser && vendor/bin/phpunit tests/e2e/ResultCacheEndToEndTest.php

result-cache-e2e-tests:
name: "Result cache E2E tests"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -167,17 +137,18 @@ jobs:
../../bin/phpstan -vvv
- script: |
cd e2e/env-parameter
export PHPSTAN_SCOPE_CLASS=MyTestScope
ACTUAL=$(../../bin/phpstan dump-parameters -c phpstan.neon --json -l 9 | jq --raw-output '.scopeClass')
[[ "$ACTUAL" == "MyTestScope" ]];
export PHPSTAN_RESULT_CACHE_PATH=/some/path
ACTUAL=$(../../bin/phpstan dump-parameters -c phpstan.neon --json -l 9 | jq --raw-output '.resultCachePath')
[[ "$ACTUAL" == "/some/path" ]];
- script: |
cd e2e/result-cache-8
composer install
../../bin/phpstan
echo -en '\n' >> build/CustomRule.php
OUTPUT=$(../../bin/phpstan 2>&1)
grep 'Result cache might not behave correctly' <<< "$OUTPUT"
grep 'ResultCache8E2E\\CustomRule' <<< "$OUTPUT"
OUTPUT=$(../../bin/phpstan analyze 2>&1 || true)
echo "$OUTPUT"
../bashunit -a contains 'Result cache might not behave correctly' "$OUTPUT"
../bashunit -a contains 'ResultCache8E2E\CustomRule' "$OUTPUT"
- script: |
cd e2e/env-int-key
env 1=1 ../../bin/phpstan analyse test.php
Expand All @@ -189,49 +160,52 @@ jobs:
cd e2e/trait-caching
../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/
patch -b data/TraitOne.php < TraitOne.patch
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/")
echo "$OUTPUT"
../bashunit -a line_count 1 "$OUTPUT"
../bashunit -a line_count 2 "$OUTPUT"
../bashunit -a matches "Note: Using configuration file .+phpstan.neon." "$OUTPUT"
../bashunit -a contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
- script: |
cd e2e/trait-caching
../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/
patch -b data/TraitTwo.php < TraitTwo.patch
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/")
echo "$OUTPUT"
../bashunit -a line_count 1 "$OUTPUT"
../bashunit -a line_count 2 "$OUTPUT"
../bashunit -a matches "Note: Using configuration file .+phpstan.neon." "$OUTPUT"
../bashunit -a contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
- script: |
cd e2e/trait-caching
../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/
patch -b data/TraitOne.php < TraitOne.patch
patch -b data/TraitTwo.php < TraitTwo.patch
OUTPUT=$(../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/ || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyze --no-progress --level 8 --error-format raw data/")
echo "$OUTPUT"
../bashunit -a line_count 2 "$OUTPUT"
../bashunit -a line_count 3 "$OUTPUT"
../bashunit -a matches "Note: Using configuration file .+phpstan.neon." "$OUTPUT"
../bashunit -a contains 'Method TraitsCachingIssue\TestClassUsingTrait::doBar() should return stdClass but returns Exception.' "$OUTPUT"
../bashunit -a contains 'Method class@anonymous/TestClassUsingTrait.php:20::doBar() should return stdClass but returns Exception.' "$OUTPUT"
- script: |
cd e2e/bad-exclude-paths
OUTPUT=$(../../bin/phpstan analyse -c ignore.neon 2>&1 || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyse -c ignore.neon")
echo "$OUTPUT"
../bashunit -a contains 'Invalid entry in ignoreErrors' "$OUTPUT"
../bashunit -a contains 'tests is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
- script: |
cd e2e/bad-exclude-paths
OUTPUT=$(../../bin/phpstan analyse -c phpneon.php 2>&1 || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyse -c phpneon.php")
echo "$OUTPUT"
../bashunit -a contains 'Invalid entry in ignoreErrors' "$OUTPUT"
../bashunit -a contains 'src/test.php is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
- script: |
cd e2e/bad-exclude-paths
OUTPUT=$(../../bin/phpstan analyse -c excludePaths.neon 2>&1 || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyse -c excludePaths.neon")
echo "$OUTPUT"
../bashunit -a contains 'Invalid entry in excludePaths' "$OUTPUT"
../bashunit -a contains 'tests is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
- script: |
cd e2e/bad-exclude-paths
OUTPUT=$(../../bin/phpstan analyse -c phpneon2.php 2>&1 || true)
OUTPUT=$(../bashunit -a exit_code "1" "../../bin/phpstan analyse -c phpneon2.php")
echo "$OUTPUT"
../bashunit -a contains 'Invalid entry in excludePaths' "$OUTPUT"
../bashunit -a contains 'src/test.php is neither a directory, nor a file path, nor a fnmatch pattern.' "$OUTPUT"
Expand Down Expand Up @@ -279,7 +253,7 @@ jobs:
run: "patch src/Analyser/Error.php < e2e/PHPStanErrorPatch.patch"

- name: "Install bashunit"
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.17.0"
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.18.0"

- name: "Test"
run: "${{ matrix.script }}"
Expand Down Expand Up @@ -322,6 +296,52 @@ jobs:
- script: |
cd e2e/bug-11819
../../bin/phpstan
- script: |
cd e2e/composer-and-phpstan-version-config
composer install --ignore-platform-reqs
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-max-version
composer install
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-min-max-version
composer install
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-min-open-end-version
composer install
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-min-version-v5
composer install --ignore-platform-reqs
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-min-version-v7
composer install --ignore-platform-reqs
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-min-version
composer install
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-no-versions
composer install
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-version-config-invalid
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
echo "$OUTPUT"
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
- script: |
cd e2e/composer-version-config-patch
composer install --ignore-platform-reqs
../../bin/phpstan analyze test.php --level=0
- script: |
cd e2e/composer-version-config
composer install
../../bin/phpstan analyze test.php --level=0

steps:
- name: "Checkout"
Expand All @@ -338,5 +358,8 @@ jobs:
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

- name: "Install bashunit"
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.18.0"

- name: "Test"
run: ${{ matrix.script }}
7 changes: 2 additions & 5 deletions .github/workflows/issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- 'changelog-generator/**'
push:
branches:
- "2.0.x"
- "2.1.x"
paths-ignore:
- 'compiler/**'
- 'apigen/**'
Expand Down Expand Up @@ -106,9 +106,6 @@ jobs:
attempt_limit: 5
attempt_delay: 1000

- name: "Add level 10 config file"
run: "cp issue-bot/config.level10.neon conf/"

- name: "Run PHPStan"
working-directory: "issue-bot"
timeout-minutes: 5
Expand Down Expand Up @@ -167,7 +164,7 @@ jobs:

- name: "Evaluate results - push"
working-directory: "issue-bot"
if: "github.repository_owner == 'phpstan' && github.ref == 'refs/heads/2.0.x'"
if: "github.repository_owner == 'phpstan' && github.ref == 'refs/heads/2.1.x'"
env:
GITHUB_PAT: ${{ secrets.PHPSTAN_BOT_TOKEN }}
PHPSTAN_SRC_COMMIT_BEFORE: ${{ github.event.before }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
push:
branches:
- "1.12.x"
- "2.0.x"

concurrency:
group: lint-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
Expand All @@ -22,8 +22,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
Expand Down Expand Up @@ -118,7 +116,7 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.3"
php-version: "8.4"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"
Expand Down
Loading
Loading