orklah
ca26acd31e
improve pg_fetch return types ( #4777 )
2021-01-29 11:47:15 +01:00
Bruce Weirdan
5bce554cbb
Fix windows builds ( #4775 )
...
* Choco now offers PHP 8 only
* Bump build deps to allow PHP 8 builds
* Bump slevomat
* Disable coverage to allow paratest
* Bump dummy project version to allow testing on PHP 8
2021-01-29 11:47:15 +01:00
Matt Brown
910d617608
Fix redundancies
2021-01-29 11:47:14 +01:00
Matt Brown
326c47ef75
Fix implicit void closure not getting recognised
2021-01-29 11:47:14 +01:00
Matt Brown
9f52e84e54
Add back PSL
2021-01-29 11:47:14 +01:00
Matt Brown
73fc7d9491
Fix #4767 - rescan directly-affected class-interface relationships
2021-01-29 11:47:14 +01:00
orklah
48f55f3c3b
Allow int casts if the type comes from calculation ( #4768 )
2021-01-29 11:47:14 +01:00
Alies Lapatsin
c60eada3f7
#4772 Mark 3rd argument of get_headers nullable and optional ( #4774 )
...
There is no documentation that $context is nullable but it’s better to mark is nullable and use default value so psalm will not ask to use all 3 parameters.
2021-01-29 11:47:14 +01:00
Matt Brown
6f598464a9
Mixed array access should mark vars as used just in case
2021-01-29 11:47:14 +01:00
Matt Brown
dd20e838ce
Make more try vars potentially undefined
...
Fixes #4764
2021-01-29 11:47:14 +01:00
Matt Brown
ba1a076059
Fix interface property regression
2021-01-29 11:47:13 +01:00
Matt Brown
eba91f741b
Fix #4760 - prevent unpacked vars from breaking call when checking unitialised properties
2021-01-29 11:47:13 +01:00
Matt Brown
9c5cc02f90
Fix #4759 – don’t generate assertion when assigning to same-named variable
2021-01-29 11:47:13 +01:00
Jáchym Toušek
fcf2bc3831
Fix Ds\Sequence::toArray() return type ( #4763 )
2021-01-29 11:47:13 +01:00
Benjamin Morel
8990f1ec95
Fix ImagickPixel::getColor() ( #4758 )
2021-01-29 11:47:13 +01:00
Denis Smetannikov
0882d563fa
Update ExistingAtomicStaticCallAnalyzer.php ( #4761 )
...
The invalid syntax for PHP 7.1+
2021-01-29 11:47:13 +01:00
Matt Brown
74b8198cb4
Simplify FunctionLikeDocblockScanner
2021-01-29 11:47:13 +01:00
Matt Brown
17d9db089f
Break apart AtomicPropertyFetchAnalyzer::analyze
2021-01-29 11:47:13 +01:00
Matt Brown
18c9b264bb
Simplify AssertionReconciler
2021-01-29 11:47:12 +01:00
Matt Brown
febec21f34
Improve message
2021-01-29 11:47:12 +01:00
Benjamin Morel
1c14600c03
Improve Imagick call map ( #4757 )
2021-01-29 11:47:12 +01:00
Matt Brown
1780541501
Ref #4753 - allow int literals to inform key type
2021-01-29 11:47:12 +01:00
Matt Brown
a20db1ce34
Fix #4751 - allow MethodSignatureMismatch to be overridable when info comes from docblock
2021-01-29 11:47:12 +01:00
Matt Brown
c54416090f
Don’t suggest a potential value that’s undefined
...
Fixes #4754
2021-01-29 11:47:12 +01:00
Matt Brown
f8e22ab7ac
Break out array_key_exists tests
2021-01-29 11:47:12 +01:00
Matt Brown
ace372bfb4
Fix #4752 - add property base assertions too
2021-01-29 11:47:12 +01:00
Matt Brown
1754c2615d
Break out method
2021-01-29 11:47:11 +01:00
Matt Brown
a93eb0eab4
Avoid false-positives while analysing memoised coalesce
2021-01-29 11:47:11 +01:00
Matt Brown
fd7afc9c40
Memoize coalesce expression in more scenarios
2021-01-29 11:47:11 +01:00
Matt Brown
7cc0f65f11
Don’t do new isset conversion on try-set vars
2021-01-29 11:47:11 +01:00
Matt Brown
0aeb0ef990
Fix loading imported functions
2021-01-29 11:47:11 +01:00
Matt Brown
b1996262ba
Ensure that strict empty handling always happens
2021-01-29 11:47:11 +01:00
Matt Brown
2d1222ddec
Fix assertions on unions
2021-01-29 11:47:11 +01:00
Matt Brown
d6b98f2afe
Fix null array access complaints
2021-01-29 11:47:11 +01:00
Matt Brown
04486ebdc0
Fix a few issues
2021-01-29 11:47:10 +01:00
Matt Brown
06d69ba5f3
Break out RedundantCast issues
2021-01-29 11:47:10 +01:00
Matt Brown
2a30e49d88
Use fallback assignment type when the property doesn’t exist on the class
2021-01-29 11:47:10 +01:00
Matt Brown
71b291caac
Fix typos caused by Macbook Pro’s bad keyboard
2021-01-29 11:47:10 +01:00
orklah
feeaaeb03c
handle return flag for a try/catch/finally ( #4746 )
...
* handle return flag for a try/catch/finally
* add tests for psalter
2021-01-29 11:47:10 +01:00
orklah
0814f5d6ee
sync param names with php ( #4745 )
...
* sync param names with php
* fiw prefixes
2021-01-29 11:47:10 +01:00
Matt Brown
7206db2cb6
Fix #4705 - clear documenting method ids when scanning stubs
2021-01-29 11:47:10 +01:00
Matt Brown
14040ed1fa
Add failing testcase for #4705
2021-01-29 11:47:10 +01:00
Matt Brown
17c9f5c746
Fix nullref
2021-01-29 11:47:09 +01:00
Matt Brown
024bbef5cd
Fix #4743 - simplify assertions generated from array_key_exists check
2021-01-29 11:47:09 +01:00
Matt Brown
c6577751da
Break up AssignmentAnalyzer::analyze
2021-01-29 11:47:09 +01:00
Matt Brown
5f77833ee1
Break apart method as much as possible
2021-01-29 11:47:09 +01:00
Matt Brown
6b2043fad5
Fix lint
2021-01-29 11:47:09 +01:00
Matt Brown
74c36ad63c
Break apart NewAnalyzer::analyze
...
Ref #4714
2021-01-29 11:47:09 +01:00
Matt Brown
36317325d1
Break apart ArrayAssignmentAnalyzer::updateArrayType
...
Ref #4714
2021-01-29 11:47:09 +01:00
Matt Brown
850a540322
Break apart InstancePropertyAssignmentAnalyzer
...
Ref #4714
2021-01-29 11:47:08 +01:00