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

7765 Commits

Author SHA1 Message Date
Matt Brown
fcf8f442fd
Fix output in tests (for non-existent files) 2021-01-29 11:44:32 +01:00
Matt Brown
6ceedb0916
Fix #4410 - use better path normalisation 2021-01-29 11:44:32 +01:00
Matthew Brown
41e073dc05
Bump Psalm Phar version 2021-01-29 11:44:31 +01:00
Matt Brown
e8b3f55013
Track final-ness of class when evaluating trait returns 2021-01-29 11:44:31 +01:00
Matt Brown
2665b7ec33
Don’t require webmozart/glob
Fixes #4408
2021-01-29 11:44:31 +01:00
Matt Brown
5aee8e77d5
Fix #4414 - allow multiple @psalm-assert-if-true on same var 2021-01-29 11:44:31 +01:00
Matt Brown
7703a18bdd
Change working dir after getting paths 2021-01-29 11:44:31 +01:00
Matt Brown
eef4ea018b
Empty checks variables are really falsy checks 2021-01-29 11:44:31 +01:00
Matt Brown
8ecbcc5849
Fix a few bugs 2021-01-29 11:44:31 +01:00
Matt Brown
9daeaacca6
Add null check 2021-01-29 11:44:31 +01:00
Matt Brown
a57d62b71b
Add logic to weed out unnecessary clauses 2021-01-29 11:44:30 +01:00
Matt Brown
1137d91ca4
Add docs 2021-01-29 11:44:30 +01:00
Matt Brown
3ff2116c17
Add basic support for PHP attributes
Ref #4367 - supports creation and argument checks
2021-01-29 11:44:30 +01:00
Matt Brown
e90b595b92
Break apart ReflectorVisitor 2021-01-29 11:44:29 +01:00
Benjamin Morel
c4d1ee7cb1
Document ArrayAccess in PHP-DS (#4401) 2021-01-29 11:41:13 +01:00
Matt Brown
6a8a660efc
Add slash 2021-01-29 11:41:13 +01:00
Matt Brown
67859ed19b
Invalidate signature types when use changes 2021-01-29 11:41:13 +01:00
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