1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
Commit Graph

7574 Commits

Author SHA1 Message Date
Matt Brown
ef36b311ea
4.x - rename TFn to TClosure 2021-01-29 11:39:47 +01:00
Matt Brown
575131cda5
Remove mixed assignment issue 2021-01-29 11:39:47 +01:00
Matt Brown
ed8ba3ce80
Fix indentation 2021-01-29 11:39:47 +01:00
Matt Brown
ffcae7c7a9
Add support for Stringable 2021-01-29 11:39:47 +01:00
Matt Brown
15f51a3a0c
Ensure PHP 8 continuation of 7.4 method signature features 2021-01-29 11:39:47 +01:00
Matt Brown
7247dbae61
Skip faulty documentation key 2021-01-29 11:39:47 +01:00
Matt Brown
698d50c87a
Elevate trait mismatch issues in PHP 8.0 2021-01-29 11:39:47 +01:00
Matt Brown
956199c688
4.x - add support for the nullsafe operator 2021-01-29 11:39:47 +01:00
Matthew Brown
780bc14de3
Add vendor/bin 2021-01-29 11:39:47 +01:00
Matthew Brown
451e2c4d56
Update the managing section
cc @weirdan
2021-01-29 11:39:46 +01:00
Matthew Brown
606040eb85
Update the discovering plugins docs 2021-01-29 11:39:46 +01:00
Saif Eddin G
1651a436f1
add support for 'COMPOSER' env variable for alternate name of 'composer.json' (#4275) 2021-01-29 11:39:46 +01:00
Matthew Brown
0baf88167c
Improve language 2021-01-29 11:39:46 +01:00
Matthew Brown
ed24cfe665
Fix casing 2021-01-29 11:39:46 +01:00
Matt Brown
6dc45bbcb7
Fix @no-named-arguments more 2021-01-29 11:39:46 +01:00
Matt Brown
64a9310d5e
Fix test 2021-01-29 11:39:46 +01:00
Matt Brown
a4b7f8e894
Support @no-named-args when calling in PHP 8 2021-01-29 11:39:46 +01:00
Matt Brown
d924a57026
Add config and docs for InvalidNamedArgument 2021-01-29 11:39:45 +01:00
Matt Brown
e079781b35
Unbreak gettype support 2021-01-29 11:39:45 +01:00
Matt Brown
cb5630d156
4.x - Support named arguments
Ref #4089
2021-01-29 11:39:45 +01:00
Matt Brown
510f1e75cd
Promoted properties are always initialized 2021-01-29 11:39:45 +01:00
Matt Brown
67d41b8538
4.x - add support for get_debug_type function
Ref #4089
2021-01-29 11:39:45 +01:00
Matt Brown
0f6e70f06e
4.x - rename GetClassT to TDependentGetClass 2021-01-29 11:39:45 +01:00
Matt Brown
613ce96582
Support property type promotion ref #4089 2021-01-29 11:39:45 +01:00
Matt Brown
7d5e9ef5f3
Small refactor 2021-01-29 11:39:45 +01:00
Simon Podlipsky
9d9584033b
Mention $XDG_CACHE_HOME in cache docs (#4268) 2021-01-29 11:39:45 +01:00
orklah
5e30c25e8a
change label (#4272) 2021-01-29 11:39:45 +01:00
Matthew Brown
53f9ba5b3b
Add slightly better language 2021-01-29 11:39:44 +01:00
Matt Brown
f63a40f69b
Fix #4266 - prevent OOM when analysing closure unioned with invokable class 2021-01-29 11:39:44 +01:00
Matt Brown
a4b6cb83db
Fix #4264 - prevent crash when analysing file with duplicate classes 2021-01-29 11:39:44 +01:00
Bruno Ribarić
bd3d7dc92b
Fix typo (#4261)
* Fix typo

* Remove word

Co-authored-by: Matthew Brown <github@muglug.com>
2021-01-29 11:39:44 +01:00
Matthew Brown
1a0e0b41de
Add more accurate description of functionality 2021-01-29 11:39:44 +01:00
Matt Brown
06f4ff89ca
Ensure catch variables are marked as used 2021-01-29 11:39:44 +01:00
Matt Brown
a6e3d46d62
Treat func_get_args as using function params 2021-01-29 11:39:44 +01:00
Matt Brown
63953d5676
4.x - refactor unused variable detection
This turns unused variable detection into an explicit control-flow problem, where before we had a more simplistic mark-and-sweep algorithm
2021-01-29 11:39:44 +01:00
Matt Brown
5351a07cea
Fix analysis when there’s a break in a loop after a reassignment 2021-01-29 11:39:43 +01:00
David de Boer
a4b246406c
Fix: allowMissingFiles not respected for ignored files (#4259) 2021-01-29 11:39:43 +01:00
5e4faf20d7
Add SplStack, SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue stubs (#4255)
* Add SplStack, SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue stubs

* Add SplFixedArray
2021-01-29 11:39:43 +01:00
Brown
5e8e183667
Add improvements from unused variable checks 2021-01-29 11:39:43 +01:00
Brown
ee2149342e
Add more unused variable tests 2021-01-29 11:39:43 +01:00
Brown
cf2872c285
Ensure loop marks vars as possibly assigned 2021-01-29 11:39:43 +01:00
Bruce Weirdan
ecec9dd040
Fixes crash due to class/filename mismatch (#4247)
Introduced in 56cddd16bf
2021-01-29 11:39:43 +01:00
Brown
f5019d92e2
Fix unused var in finally false-positive 2021-01-29 11:39:43 +01:00
Brown
3776331be1
Require latest php-parser 2021-01-29 11:39:43 +01:00
Brown
1893147aed
Prevent duplicate switch return types 2021-01-29 11:39:43 +01:00
Brown
5177511a72
Fix test result 2021-01-29 11:39:42 +01:00
Brown
20edbd9b0c
Add extra loops for more reliable analysis 2021-01-29 11:39:42 +01:00
Brown
999a8aa4a8
Move taint graph functionality into its own object 2021-01-29 11:39:42 +01:00
Brown
d666d93950
Add more tests for unused variables 2021-01-29 11:39:42 +01:00
orklah
3afe1daeec
preg_split can't take null in limit (#4236)
* preg_split can't take null in limit

* fix wrong type in preg_split
2021-01-29 11:39:42 +01:00