1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
Commit Graph

7373 Commits

Author SHA1 Message Date
orklah
e3e5a55907
unused use statements (#4228) 2021-01-29 11:39:42 +01:00
Brown
e5880571d9
Add missing = true 2021-01-29 11:39:42 +01:00
orklah
8f1a948760
misc changes (#4227)
* misc changes

* misc changes
2021-01-29 11:39:42 +01:00
Brown
88a1a5e8bc
Propagate has_returned flag 2021-01-29 11:39:41 +01:00
Brown
dbdf4f383b
Fix fudging var 2021-01-29 11:39:41 +01:00
Brown
d40cc0b35b
Skip currently-failing undefined variable test 2021-01-29 11:39:41 +01:00
Brown
83c72ce876
Be a little bit more robust in finally handling 2021-01-29 11:39:41 +01:00
Brown
734b9c3833
Detect more issues inside finally block 2021-01-29 11:39:41 +01:00
Brown
ebe5841dd0
Make sure to union try-set vars 2021-01-29 11:39:41 +01:00
Brown
81626eee0f
Don’t forget control actions 2021-01-29 11:39:41 +01:00
Brown
0856354b48
Rename TaintGraph to ControlFlowGraph because it’s about to do more 2021-01-29 11:39:41 +01:00
Brown
364f8f1a01
Add back necessary suppression 2021-01-29 11:39:40 +01:00
Brown
a6950c36e0
Revert StatementsAnalyzer change 2021-01-29 11:39:40 +01:00
Brown
c288dac4de
Fix tests 2021-01-29 11:39:40 +01:00
Brown
b9c33aaa03
Improve file-based suppression of taints 2021-01-29 11:39:40 +01:00
Brown
dbe4b4c708
Localise taint analysis better 2021-01-29 11:39:40 +01:00
Brown
6cf6e22b44
Add to StatementsAnalyzer taint object instead of Context 2021-01-29 11:39:40 +01:00
Brown
291c067dc5
Rename Taint object to TaintGraph 2021-01-29 11:39:40 +01:00
orklah
13c291c63f
useless comparison (#4223)
* remove unused code

* fix wrong fix
2021-01-29 11:39:40 +01:00
orklah
9f00b8536a
fix test on windows (#4225) 2021-01-29 11:39:40 +01:00
Brown
acd4c63857
Use shuffled files 2021-01-29 11:39:40 +01:00
orklah
f1aba254be
Use array destructuring when possible (#4221)
* list usage

* fix inversion
2021-01-29 11:39:39 +01:00
orklah
69be386072
remove incorrect inheritDoc (#4220) 2021-01-29 11:39:39 +01:00
orklah
f6450e313f
add visibilities to constants (#4219) 2021-01-29 11:39:39 +01:00
Brown
c0bf0a8fa7
Fix #4198 - make analysis of class-string property assignments more robust 2021-01-29 11:39:39 +01:00
orklah
b559951bf4
replace deprecated methods with their equivalent (#4217) 2021-01-29 11:39:39 +01:00
orklah
ba202b7ad3
Misc improvements (#4216)
* misc changes

* fix CI
2021-01-29 11:39:39 +01:00
orklah
3652d51275
Remove empty() and use strict comparison when safe (#4211)
* replace empty usage with stricter checks

* use strict comparison when safe

* replace is_null with === null for consistency
2021-01-29 11:39:39 +01:00
Brown
6a4df30868
Meke staticy methods properly static 2021-01-29 11:39:39 +01:00
Brown
5302936e76
Fix #4206 - add shortcut for if ((bool) $foo) 2021-01-29 11:39:39 +01:00
Brown
ec64ae930a
Fix a couple of false-positive redundant conditions 2021-01-29 11:39:38 +01:00
Brown
1b10f11217
Fix tests 2021-01-29 11:39:38 +01:00
Brown
ff2c18aa67
Fix #4208 - array with possibly-undefined keys isn‘t really sealed 2021-01-29 11:39:38 +01:00
Brown
e7333ec4db
Fix #4209 - allow hinting arrow function return type 2021-01-29 11:39:38 +01:00
Brown
1b6ecfc128
Fix #4210 - fix __invoke declaration tracing 2021-01-29 11:39:38 +01:00
Brown
93d66117d0
func_num_args is pure
fixes #4215
2021-01-29 11:39:38 +01:00
orklah
e22491537b
align default value with documentation (#4188) 2021-01-29 11:39:38 +01:00
Brown
da8df71b2f
Add explicit offset
Fixes #4202
2021-01-29 11:39:38 +01:00
Daniel Badura
b321b47822
add random_int as stub, returns positive-int if min is positive-int (#4199) 2021-01-29 11:39:38 +01:00
orklah
2c1ff808bb
Fix errors in return types (#4189)
* FunctionLikeAnalyzer::verifyReturnType returns void

* ArrayFunctionArgumentsAnalyzer::checkArgumentsMatch returns void

* AssertionFinder::scrapeAssertions can't return null
2021-01-29 11:39:38 +01:00
Brown
a71af5a5e5
Only refine for matching closure union members
Ref #4136
2021-01-29 11:39:37 +01:00
Brown
7e534d14d0
Improve accuracy of array_filter 2021-01-29 11:39:37 +01:00
Brown
f8e7b649c7
Improve array_merge return type 2021-01-29 11:39:37 +01:00
Brown
9b31fb4d00
Fix style 2021-01-29 11:39:37 +01:00
Brown
95cc274192
Support more array intersections in type parsing 2021-01-29 11:39:37 +01:00
Brown
f8f83e88f1
Add back suppression 2021-01-29 11:39:37 +01:00
Brown
7b48584d24
Make sure all written entries are correctly sorted 2021-01-29 11:39:37 +01:00
Brown
376a825161
Fix regression – detect unused params with defaults again 2021-01-29 11:39:37 +01:00
Brown
386f3da446
Fix template check 2021-01-29 11:39:36 +01:00
Brown
5e6b158dd9
Do no writing when saving parser cache in tests 2021-01-29 11:39:36 +01:00