1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 18:48:03 +01:00
Commit Graph

10728 Commits

Author SHA1 Message Date
m1ke
92aedd6f7f Fix cherry pick issues 2022-02-11 11:27:01 +00:00
m1ke
fc694d7a98 Allow psalm to load threads from the config 2022-02-11 11:23:17 +00:00
m1ke
a688bd6da3 Use config threads if lower than detected threads 2022-02-11 11:23:09 +00:00
m1ke
810880c71b Alter order of precedence and upated docs to match 2022-02-11 11:12:36 +00:00
orklah
fb1fd8429f
Merge pull request #7621 from orklah/reflectionstubs
add ReflectionIntersectionType stub
2022-02-09 22:53:57 +01:00
orklah
0702a0b3e7 add ReflectionIntersectionType stub 2022-02-09 19:32:17 +01:00
Office
432d0be658 load phpredis stubs 2022-02-09 15:56:51 +01:00
Bruce Weirdan
ba99e77687
Merge pull request #7620 from weirdan/strip-colors-from-success-message 2022-02-09 16:50:51 +02:00
Bruce Weirdan
21e6371ce2
Strip colours from success message
Fixes vimeo/psalm#7619
2022-02-09 15:35:40 +02:00
Office
9d120896d5 add phpredis stubs 2022-02-09 08:14:58 +01:00
Andrew Nagy
867a4862f3 bump 2022-02-07 17:50:55 +00:00
Andrew Nagy
8855bedab6 bump 2022-02-07 17:12:56 +00:00
Andrew Nagy
19a3f4d935 catch TypeParseTreeException 2022-02-04 19:49:46 +00:00
Bruce Weirdan
b06fb932d4
Merge pull request #7585 from tomasz-kusy/magic-const-fix 2022-02-04 21:36:20 +02:00
Tomasz Kusy
124aa22fe9 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix fix fix :) 2022-02-04 20:27:45 +01:00
Tomasz Kusy
8da45aa7d8 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix fix 2022-02-04 20:26:06 +01:00
Tomasz Kusy
b73f2c96d8 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix 2022-02-04 19:43:55 +01:00
Tomasz Kusy
bcbfbed072 Resolve __DIR__ / __FILE__ when const/variable is used for include 2022-02-04 19:39:39 +01:00
Andrew Nagy
a697c79a37 pass progress higher up 2022-02-04 04:14:48 +00:00
Andrew Nagy
81d37311d5 Merge branch '4.x' into feature/upgrade-lsp 2022-02-04 00:48:33 +00:00
Andrew Nagy
e259d56627 bump again 2022-02-03 23:22:56 +00:00
Andrew Nagy
a7146b4e37 bump 2022-02-03 23:21:28 +00:00
Andrew Nagy
20e7316dfa remove need for defining lsp elsewhere 2022-02-03 23:19:39 +00:00
Andrew Nagy
cfc5a3ac91 more fixes 2022-02-03 19:27:08 +00:00
Andrew Nagy
c8f50b9f07 move starting of server into server itself 2022-02-03 19:06:25 +00:00
orklah
f82a70e7ed
Merge pull request #7573 from phptest2/4.x
improving error message for Could not resolve config path
2022-02-03 18:03:47 +01:00
phptest2
582624a932
improving error message for Could not resolve config path
$directory_path is false, so better use $prospective_directory_path in the error message.
2022-02-03 17:58:12 +01:00
Andrew Nagy
d8394cb72f add class reference 2022-02-03 00:34:32 +00:00
Andrew Nagy
9f6843bbb8 add psalm and phpcs checking and cleanup errors from that 2022-02-02 23:37:20 +00:00
Andrew Nagy
9957f67353 fix didClose 2022-02-02 22:49:02 +00:00
Andrew Nagy
f4e8e1ff32 check nulls quicker 2022-02-02 22:28:35 +00:00
Andrew Nagy
de6d71431b after bubble up we now need to not yield nulls 2022-02-02 22:25:11 +00:00
Andrew Nagy
2093a28182 log an error outside of requests 2022-02-02 22:19:52 +00:00
Andrew Nagy
81418e2ce0 improve file caching logic with versions and refreshes 2022-02-02 22:17:54 +00:00
Andrew Nagy
727a09d2de Merge branch '4.x' into feature/upgrade-lsp 2022-02-02 18:22:15 +00:00
Andrew Nagy
1b98fe52ef analyze files even outside of the scope because this is how IDEs work 2022-02-02 18:10:10 +00:00
Bruce Weirdan
2128ab1d71
Merge pull request #7561 from b2pweb/clear-context-on-static-call 2022-02-02 17:30:14 +02:00
Vincent
3c3e692e7e AtomicStaticCallAnalyzer: clear tmp var from context (fix #7556) 2022-02-02 13:51:54 +01:00
orklah
ff2636eed8
Merge pull request #7558 from orklah/tweaksToArrays
sealed keyed arrays
2022-02-01 22:56:59 +01:00
orklah
1c2ffc81c2 tweaks 2022-02-01 22:49:20 +01:00
Andrew Nagy
870e1ba959 additional work to caching engine 2022-02-01 12:10:22 -08:00
orklah
bd14653da5
Merge pull request #7554 from Ocramius/fix/#7478-trait_exists-always-returns-boolean
Ensure `trait_exists()` always returns `bool`
2022-02-01 17:48:27 +01:00
Marco Pivetta
fabcda16b4 Ensure trait_exists() always returns bool
Fixes #7478

As discussed in the upstream issue, `trait_exists()` always returns `bool`: while
it can return `null` when the arguments passed to it do not match (either no arguments, or
3 or more arguments), we do not support that scenario, as that already doesn't respect the
type signature of this function.

We cut to the point: always make it `bool`, which is the scenario that works under healthy
operational conditions.

Ref: https://github.com/Roave/BetterReflection/pull/983#discussion_r790908170
Ref: https://psalm.dev/r/c41a43805d
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020330351
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020337712
Ref: https://3v4l.org/XpHmh
2022-02-01 16:51:09 +01:00
Andrew Nagy
55c65573ce add command to fix all and analyize single file 2022-02-01 06:21:07 +00:00
Andrew Nagy
de9d626571 Merge branch '4.x' into feature/upgrade-lsp 2022-02-01 00:05:28 +00:00
Bruce Weirdan
dadb1f2167
Merge pull request #7539 from vimeo/revert-7363-81_returntypewillchange 2022-02-01 01:03:09 +02:00
Andrew Nagy
cfdf5c4a68 additional debugging 2022-01-31 22:38:22 +00:00
Andrew Nagy
427ff3a018 Upgrade LSP to support additional features 2022-01-31 22:15:29 +00:00
Bruce Weirdan
49d256601f
Suppress UnusedClass 2022-02-01 00:06:25 +02:00
Bruce Weirdan
f61193b798
Reinstate MethodSignatureMustProvideReturnType
It's never emitted, but is there for BC.
2022-01-31 23:38:15 +02:00