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

7464 Commits

Author SHA1 Message Date
Matt Brown
6310aff7e5
4.x - skip Stringable test if not in PHP 8.0 2021-01-29 11:39:52 +01:00
Matt Brown
76a2158d37
Make docblocks compatible with PHP 8 2021-01-29 11:39:52 +01:00
Matt Brown
1a4292b992
4.x - fix callmap regressions 2021-01-29 11:39:52 +01:00
Matt Brown
056f546a38
4.x - detect falty !is_resource checks 2021-01-29 11:39:51 +01:00
Matt Brown
88284c2b3d
4.x - add support for PHP 8 callmap 2021-01-29 11:39:51 +01:00
Matt Brown
36ed769b9f
Add more fixes 2021-01-29 11:39:51 +01:00
Matt Brown
df98750963
Fix order 2021-01-29 11:39:51 +01:00
Matt Brown
3558a66a12
Add changes from PHPStan‘s functionmap 2021-01-29 11:39:51 +01:00
Matt Brown
a531c2e450
Move static code out of src 2021-01-29 11:39:51 +01:00
Matt Brown
01781af718
Fix #4306 - negating positive-numeric is useless, avoid crash 2021-01-29 11:39:51 +01:00
Matt Brown
4f5a3ca82b
Fix #4299 - only allow unpacking for the zeroeth-indexed element 2021-01-29 11:39:51 +01:00
Matt Brown
6bd6a4cbc3
Ignore precondition issues in loop 2021-01-29 11:39:51 +01:00
Matt Brown
96af3e041c
Unbreak CI 2021-01-29 11:39:50 +01:00
Matt Brown
8d63dfec0a
Convert numeric literal strings to their int/float equivalents for numeric operations 2021-01-29 11:39:50 +01:00
Matt Brown
f1be27b18a
Fix addition of int and string type 2021-01-29 11:39:50 +01:00
Matt Brown
5c1fcf403c
Fix #4297 - use correct property id for each different MissingConstructor error 2021-01-29 11:39:50 +01:00
Matt Brown
49dcec6d4a
Fix #4287 - intersection of regular arrays should not result in crash 2021-01-29 11:39:50 +01:00
Matt Brown
b0c3f09c29
Improve accuracy of messages 2021-01-29 11:39:50 +01:00
Matt Brown
3f5cb4db1f
Warn about impossible/redundant conditions in RHS of || 2021-01-29 11:39:50 +01:00
Matt Brown
d1b81e9b80
Improve error message 2021-01-29 11:39:50 +01:00
Matt Brown
0c0d0f9724
Use better locations for errors 2021-01-29 11:39:50 +01:00
Matt Brown
2a755cce8c
Always check LHS of or condition before applying to RHS 2021-01-29 11:39:49 +01:00
Matt Brown
44a3f2d084
Improve message even more 2021-01-29 11:39:49 +01:00
Matt Brown
b85cff5491
Improve language further 2021-01-29 11:39:49 +01:00
Matt Brown
017af2b3d9
Clarify names 2021-01-29 11:39:49 +01:00
Matt Brown
52c331f3d5
Fix bug 2021-01-29 11:39:49 +01:00
Matt Brown
f8da2878a5
Simplified even more 2021-01-29 11:39:49 +01:00
Matt Brown
6e0d35ee00
Simplify more 2021-01-29 11:39:49 +01:00
Matt Brown
c662ea68be
Fix linting 2021-01-29 11:39:49 +01:00
Matt Brown
ff50567618
Improve clause-to-string conversion 2021-01-29 11:39:49 +01:00
feek
a19f738967
feature: universal object crates (#3948)
* feature: universal object crates

* docs: document universal object crate config option

Co-authored-by: Matthew Brown <github@muglug.com>
2021-01-29 11:39:48 +01:00
Leighton Thomas
c4cbe8dfdc
Fix #3543 - add documentation for @psalm-type and @psalm-import-type (#4291) 2021-01-29 11:39:48 +01:00
Marco Perone
696e353c8b
add some more stubs for array functions (#4271)
* add some more stubs for array functions

* add function brackets to stubs

* add parameter names

* remove redundant brackets

* remove stubs already defined in return type providers
2021-01-29 11:39:48 +01:00
Matt Brown
580d3e2b61
Fix tests 2021-01-29 11:39:48 +01:00
Matt Brown
8cbbfbf58b
Update docs to match 4.x config flags 2021-01-29 11:39:48 +01:00
Matt Brown
9bbb11599a
4.x - change/remove some default config values 2021-01-29 11:39:48 +01:00
Matt Brown
819f2e2f27
4.x - don’t skip checks on unresolvable includes 2021-01-29 11:39:48 +01:00
Matt Brown
21141ab537
4.x - move class constants into their own storage object 2021-01-29 11:39:48 +01:00
Matt Brown
ca03d84776
Remove by-ref 2021-01-29 11:39:48 +01:00
Matt Brown
67d995b67f
4.x - Prevent AfterFunctionCallAnalysisInterface from rewriting return types 2021-01-29 11:39:47 +01:00
Matt Brown
ef36b311ea
4.x - rename TFn to TClosure 2021-01-29 11:39:47 +01:00
Matt Brown
575131cda5
Remove mixed assignment issue 2021-01-29 11:39:47 +01:00
Matt Brown
ed8ba3ce80
Fix indentation 2021-01-29 11:39:47 +01:00
Matt Brown
ffcae7c7a9
Add support for Stringable 2021-01-29 11:39:47 +01:00
Matt Brown
15f51a3a0c
Ensure PHP 8 continuation of 7.4 method signature features 2021-01-29 11:39:47 +01:00
Matt Brown
7247dbae61
Skip faulty documentation key 2021-01-29 11:39:47 +01:00
Matt Brown
698d50c87a
Elevate trait mismatch issues in PHP 8.0 2021-01-29 11:39:47 +01:00
Matt Brown
956199c688
4.x - add support for the nullsafe operator 2021-01-29 11:39:47 +01:00
Matthew Brown
780bc14de3
Add vendor/bin 2021-01-29 11:39:47 +01:00
Matthew Brown
451e2c4d56
Update the managing section
cc @weirdan
2021-01-29 11:39:46 +01:00