Matthew Brown
b6dce59e9e
arraylike-object should include countable
...
Fixes #4398
2021-01-29 11:41:13 +01:00
Matt Brown
3731255f6f
Fix #4386 - fix issues with property promotion
2021-01-29 11:41:13 +01:00
Matt Brown
00c66b41e7
Remove --diff-methods from --help
...
Fixes #4384
2021-01-29 11:41:13 +01:00
feek
d1b7cf6860
feature: ensure universal object crate class exists ( #4375 )
2021-01-29 11:41:13 +01:00
Matt Brown
7df404bfb5
Fix #4374 - prevent paradox and allow Psalm to understand more assignments in conditionals
2021-01-29 11:41:13 +01:00
Matt Brown
26352d0e39
Fix #3625 - getIterator call is used inside loop
2021-01-29 11:41:12 +01:00
Matt Brown
5b8169f7dc
Only show interesting array intersections
2021-01-29 11:41:12 +01:00
Matt Brown
bb2fe68a13
Revert change to array shape display
2021-01-29 11:41:12 +01:00
Matt Brown
d7a0b718ec
Fix #4372 - count implicitly-used short-closure vars as used
2021-01-29 11:41:12 +01:00
Matt Brown
d56ce1df00
Fix #4371 - improve display of intersection arrays
2021-01-29 11:41:12 +01:00
Matt Brown
b3e423fd03
Fix #4368 - improve handling of try with finally
2021-01-29 11:41:12 +01:00
Matt Brown
3a95ab9885
getShortName does not return a class-string
2021-01-29 11:41:12 +01:00
Matt Brown
c77ec473f4
Add back use
2021-01-29 11:41:12 +01:00
Niclas van Eyk
5f019cef53
Initial proposal for psalm-require-{extends, implements} ( #4361 )
...
* initial implementation of psalm-require-extends
* Added @psalm-require-implements
* Added shortcode for ExtensionRequirementViolation
* Docs & cofig entries for @pasalm-require-{implements,extends}
* Added requirement violations to issues.md
2021-01-29 11:41:10 +01:00
Matt Brown
f28c35d96a
Fix language server
2021-01-29 11:39:59 +01:00
Matt Brown
dab7da02bd
Fix #4366 - possibly-undefined vars in finally block should not error
2021-01-29 11:39:59 +01:00
Matt Brown
8e77de4340
Bump minimum phpunit plugin version
2021-01-29 11:39:59 +01:00
Matthew Brown
93645de8b3
Update composer.json
2021-01-29 11:39:59 +01:00
Matthew Brown
657649cac7
Add 4.0 compatibility (hopefully)
2021-01-29 11:39:59 +01:00
Matthew Brown
d03ff1d2af
Remove --diff-methods
2021-01-29 11:39:59 +01:00
Matthew Brown
e11be08f89
4.x ( #4363 )
...
* Enable --diff mode by default
* Bump required version
2021-01-29 11:39:58 +01:00
Matt Brown
481cf84b94
Don’t overwrite true flag
2021-01-29 11:39:58 +01:00
Matt Brown
3cab29ec4e
Prevent dupe records
2021-01-29 11:39:58 +01:00
Matt Brown
4c62f8b5fc
Fix bad replacement
2021-01-29 11:39:58 +01:00
Matt Brown
bdfe6e4eef
Improve error messaging
2021-01-29 11:39:58 +01:00
Matt Brown
74d6f166c1
Be more explicit about negation
2021-01-29 11:39:58 +01:00
Matt Brown
8043683f26
Ignore just-coerced vars
2021-01-29 11:39:58 +01:00
Matt Brown
d153f2f131
Prevent unnecessary assignments
2021-01-29 11:39:58 +01:00
Matt Brown
596811cdc1
Suppress errors from fake statements
2021-01-29 11:39:58 +01:00
Matt Brown
e516a7edd9
Fix reversed negation check
2021-01-29 11:39:58 +01:00
Matt Brown
c5c177a80a
Improve binary op || analysis for chain
2021-01-29 11:39:57 +01:00
Matt Brown
3f5269d86a
Fix style
2021-01-29 11:39:57 +01:00
orklah
62861e79d8
improve phpdoc ( #4352 )
2021-01-29 11:39:57 +01:00
Matt Brown
596e71d6aa
Unskip now-working tests
2021-01-29 11:39:57 +01:00
Matt Brown
2d8d1b9bf7
Fix #4354 - allow assignments on RHS of || in if conditional
2021-01-29 11:39:57 +01:00
Matt Brown
a18dd1a304
Fix array_unique flag
2021-01-29 11:39:57 +01:00
Pascal Heidmann
05547291c2
try creating report folder if not exists ( #4353 )
...
Co-authored-by: Pascal Heidmann <heidmann@kigaroo.de>
2021-01-29 11:39:57 +01:00
Matt Brown
85bbc0a5d5
Fix dupes
2021-01-29 11:39:57 +01:00
Matt Brown
231c7a1de4
Allow union with positive-int
2021-01-29 11:39:57 +01:00
Matt Brown
da79106a6a
Fix #4349 - improve types for suggested unions
2021-01-29 11:39:57 +01:00
Matt Brown
426a1ce47e
Fix #4350 - numeric-string should not get replaced
2021-01-29 11:39:56 +01:00
Matt Brown
3a8b8e5c2a
Fix algebra more
2021-01-29 11:39:56 +01:00
Matt Brown
4f60d2dd4d
Fix #4347 - fix combinatorial expansion when negating if conditions
2021-01-29 11:39:56 +01:00
orklah
2ce058ab3e
Misc improvements ( #4314 )
...
* extract the operation out of the loop when possible
* remove unnecessary interfaces when already inherited in parent
* simplify expressions
* avoid using alias functions
* redundant phpdoc
* unused imports
2021-01-29 11:39:56 +01:00
Matt Brown
a766631500
Fix default value
2021-01-29 11:39:56 +01:00
Matt Brown
1025b29e06
Add range check
2021-01-29 11:39:56 +01:00
Matt Brown
5b140bf522
Treat more issues as fixable cc @orklah
2021-01-29 11:39:56 +01:00
Matt Brown
460c4a2c3e
Fix #4333 - don’t get tripped up on try with no catches
2021-01-29 11:39:56 +01:00
Matt Brown
c43c29880c
Fix #4336 - don’t merge sources twice for null coalesce
2021-01-29 11:39:56 +01:00
Matt Brown
14ab3a95a5
Break apart InstancePropertyFetchAnalyzer and others
2021-01-29 11:39:56 +01:00