1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 08:49:52 +01:00
Commit Graph

13854 Commits

Author SHA1 Message Date
kkmuffme
c5fee532f3 consistently ignore falsable return, remove unused suppress with new types 2023-06-24 18:11:15 +02:00
kkmuffme
7f0217d1e3 fix incorrect default stubs 2023-06-24 18:11:15 +02:00
kkmuffme
28b9e8dd95 run format checks for splat too 2023-06-24 18:11:15 +02:00
kkmuffme
9599c240b3 code style 2023-06-24 18:11:15 +02:00
kkmuffme
52ca871057 fix try/catch variable must be initialized 2023-06-24 18:11:15 +02:00
kkmuffme
fad17686bd Fix false positive for array unpacking
Fix https://github.com/vimeo/psalm/issues/9873
2023-06-24 18:11:15 +02:00
kkmuffme
f2a9e09136 reorganize code for PHP 7 to also check for invalid argument and reduce duplicate 2023-06-24 18:11:15 +02:00
kkmuffme
151f101f7c fix PHP 7 sprintf too many arguments false positive
Fix https://github.com/vimeo/psalm/issues/9941
2023-06-24 18:11:15 +02:00
orklah
b9a7c377bb
Merge pull request #9955 from tscni/fix/class-property-cached-method-invalidation
Invalidate cached methods when referenced class property types change
2023-06-24 16:16:25 +02:00
Tinjo Schöni
a737ca8072
Consider a property type change as a signature change 2023-06-24 15:31:15 +02:00
Tinjo Schöni
703a4b46c3
Add test case for property type change not invalidating methods 2023-06-24 14:29:28 +02:00
Tinjo Schöni
1b1915eaf5
Make file storage cache handling consistent 2023-06-24 14:29:28 +02:00
Tinjo Schöni
9939cae52d
Support project analysis with file diffing in tests 2023-06-24 14:29:28 +02:00
orklah
81946bbbc3
Merge pull request #9953 from boesing/bugfix/issue-9917
`non-empty-list` assertion for iterable
2023-06-24 01:55:04 +02:00
Maximilian Bösing
f482a5cb31
bugfix: pass non-empty information when reconciling iterable
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-06-23 21:15:37 +02:00
Maximilian Bösing
2d84b06cfa
qa: introduce failing test
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-06-23 20:44:33 +02:00
orklah
01e2ac78d4
Merge pull request #9950 from orklah/iterableInt
fix reconciliation between a list and iterable
2023-06-22 23:45:39 +02:00
orklah
8929f8b4d8 fix reconciliation between a list and iterable 2023-06-22 23:37:40 +02:00
orklah
bb28c5aa64
Merge pull request #9932 from ygottschalk/fix/cache-fail-silent
Fix/cache fail silent
2023-06-21 21:09:56 +02:00
orklah
03b91561a7
Merge pull request #9935 from ygottschalk/fix/cache-config-warnings
Make config warn about missing cache related functions
2023-06-21 21:08:39 +02:00
orklah
fd4a97bd91
Merge pull request #9931 from tscni/fix/delete-file-invalidate-referencing-cached-methods
Invalidate cached methods when referenced files are deleted
2023-06-21 21:08:00 +02:00
orklah
653ad669a0
Merge pull request #9934 from alcaeus/mongodb-functions
Add call map entries for MongoDB functions
2023-06-20 13:07:25 +02:00
Yannick Gottschalk
dbc4f48e2b Make config warn about missing cache related functions 2023-06-20 12:40:08 +02:00
Andreas Braun
47569ed703
Add call map entries for MongoDB functions 2023-06-20 12:19:54 +02:00
orklah
85d3e4dd68
Merge pull request #9933 from alcaeus/mongodb-1.16-stubs
Update callmap for ext-mongodb 1.16
2023-06-20 12:14:00 +02:00
Andreas Braun
0e26bc79aa
Update callmap for ext-mongodb 1.16 2023-06-20 12:01:08 +02:00
Yannick Gottschalk
503c38df03 Make cache writes fail silent 2023-06-20 11:54:05 +02:00
Yannick Gottschalk
66848306f9 Make cache fail silent 2023-06-20 11:51:24 +02:00
Tinjo Schöni
1161edfa33
Invalidate cached methods when referenced files are deleted 2023-06-20 01:01:24 +02:00
Tinjo Schöni
474f8874f0
Add test case for file deletes not invalidating methods 2023-06-20 01:01:24 +02:00
Tinjo Schöni
3e2de9d152
Implement a way to test cache issues 2023-06-20 01:01:23 +02:00
orklah
8e636086b3
put config to true to prevent deprecations for new config files (#9857)
* put config to true to prevent deprecations for new config files
2023-06-19 22:02:29 +02:00
orklah
8ca4110e68
Merge pull request #9930 from orklah/volatile_cache
remove StementsVolatileCache for perf reasons
2023-06-19 22:00:19 +02:00
orklah
f30b4c022d
Merge pull request #9929 from orklah/perf-switch
improve perfs for switch by not creating reverse assertions against constants
2023-06-19 21:56:59 +02:00
orklah
da8c1da8be remove StementsVolatileCache for perf reasons 2023-06-19 21:44:00 +02:00
orklah
1b571a1649 improve perfs for switch by not creating reverse assertions against constants 2023-06-19 21:24:46 +02:00
orklah
2e8d575543
Merge pull request #9924 from kkmuffme/compressor-configurable-lz4-deflate-off-only
make compressor configurable v2
2023-06-18 20:34:49 +02:00
kkmuffme
9d1558b3ca make compressor configurable
Fix https://github.com/vimeo/psalm/issues/9905
Suppress throws for igbinary_unserialize like it was done for @unserialize
2023-06-18 20:22:02 +02:00
orklah
e2dde5d200
Merge pull request #9922 from robchett/elseif_shouldnt_be_modifying_outer_scope
Don't update types of the outer scope when in an elseif conditional
2023-06-18 11:00:16 +02:00
orklah
b5159517ce
Merge pull request #9920 from robchett/CoreGenericAttributes
Add a stub file for Attributes defined by PHP
2023-06-17 22:11:26 +02:00
orklah
c2c5b25fdf
Merge pull request #9921 from robchett/improve_type_of__LINE__
set type of  __LINE__ to positive int
2023-06-17 22:10:59 +02:00
robchett
620c7cd68a Fix bug surfaced from removal of elseif scope modification 2023-06-17 15:02:31 +01:00
robchett
4600d2b224 Fix line lenght 2023-06-17 14:13:04 +01:00
robchett
7792b6c36c Don't update types of the outer scope when in an elseif conditional 2023-06-17 13:36:29 +01:00
robchett
5fc48bbb62 Add a stub file for Attributes defined by PHP 2023-06-17 12:26:56 +01:00
robchett
721b65ce2f Add Type::getIntRange 2023-06-17 12:24:09 +01:00
robchett
338b50a959 Change __LINE__ to a positive-int 2023-06-17 12:24:09 +01:00
orklah
eb64a471c4
Merge pull request #9903 from ygottschalk/fix/9827-union-empty-array-and-false
Fixes #9827
2023-06-15 21:19:44 +02:00
orklah
70795bc8c6
Merge pull request #9916 from kkmuffme/slightly-improve-preg-performance
docblock parser minor performance gain
2023-06-15 21:18:53 +02:00
kkmuffme
16aaa3ae2b regex cleanup 2023-06-13 22:07:51 +02:00