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

7738 Commits

Author SHA1 Message Date
Matt Brown
9f87b99fac
Fix #4435 - ensure casts are always flow-sensitive 2021-01-29 11:44:35 +01:00
Matt Brown
ab90097baf
Remove subpar test 2021-01-29 11:44:35 +01:00
Matt Brown
a495e067ca
Protect more calls 2021-01-29 11:44:34 +01:00
Matt Brown
3ebdb3b952
Use more accurate comparison for non-empty-lists 2021-01-29 11:44:34 +01:00
Matt Brown
f242845195
Fix count call 2021-01-29 11:44:34 +01:00
Matt Brown
f9adf24d6d
Use lists everywhere for args 2021-01-29 11:44:34 +01:00
Matt Brown
116bf2e867
If interface implements __toString it’s also Stringable 2021-01-29 11:44:34 +01:00
Matt Brown
97dc34bed3
Add polyfill for Stringable interface 2021-01-29 11:44:34 +01:00
Matt Brown
951c3715f7
Fix tests 2021-01-29 11:44:33 +01:00
Matt Brown
35fd64bf74
Fix test type 2021-01-29 11:44:33 +01:00
Matt Brown
106747487b
Fix #4429 - any class with a __toString method in PHP8 assumed to implement Stringable 2021-01-29 11:44:33 +01:00
Matt Brown
7f975045f4
Fix #4422 - be aware of nested template params 2021-01-29 11:44:33 +01:00
Matt Brown
1762f39a74
Fix comma 2021-01-29 11:44:33 +01:00
Matt Brown
e440baf671
Improve algebra handling a little better 2021-01-29 11:44:33 +01:00
Matthew Brown
5a5a355336
Bump circle PHP version 2021-01-29 11:44:33 +01:00
Matthew Brown
831bcdc057
Experiment with PHP 7.1 compatibility (#4421)
* Experiment with PHP 7.1 compatibility

* Let’s hop
2021-01-29 11:44:32 +01:00
Matt Brown
cbaffcee67
Fix #4407 - always scan types in @var docblocks regardless of next element 2021-01-29 11:44:32 +01:00
Simon Podlipsky
35201697e9
Fix preg_match_all param name (#4416) 2021-01-29 11:44:32 +01:00
Matt Brown
870d07ba51
Fix #4418 - improve try analysis for mixed, too 2021-01-29 11:44:32 +01:00
Matt Brown
c16d779bca
Fix #4397 - allow offsetGet on inside isset 2021-01-29 11:44:32 +01:00
Benjamin Morel
36b7186712
Ds\Queue & Ds\Set implement ArrayAccess as well (#4415) 2021-01-29 11:44:32 +01:00
Matt Brown
d027bbf41b
Remove stubs with variadic middle params
Fixees #4377
2021-01-29 11:44:32 +01:00
Matt Brown
95b0d6da91
Maintain old behaviour when file does not exist 2021-01-29 11:44:32 +01:00
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