Roland Franssen :)
ce9d9db115
Update Psalm.php
2023-07-01 13:54:15 +02:00
Roland Franssen :)
52c629c331
infer --debug in GHA
2023-07-01 13:48:58 +02:00
Roland Franssen :)
06172740cd
Update PsalmRunnerTrait.php
2023-07-01 13:40:04 +02:00
Roland Franssen :)
f0e2856963
Update PsalmRunnerTrait.php
2023-07-01 13:36:42 +02:00
Roland Franssen :)
7cf87b28dc
Update PsalmRunnerTrait.php
2023-07-01 13:28:05 +02:00
Roland Franssen :)
8ed4f94988
Infer output format from GITHUB_ACTIONS env
...
aka --output-format=github
2023-06-30 21:45:11 +02:00
kkmuffme
09a3b4b32c
code style
2023-06-30 17:14:13 +02:00
kkmuffme
26eb870e47
fix mixed replace return types for arrays
...
* remove useless replace return type provider code that returned incorrect type for array replacements and was worse duplicate of existing stubs
* require preg patterns to be non-empty-strings as otherwise it will throw a PHP notice
* improve return type of array replacements to be more correct (not fully correct due to https://github.com/vimeo/psalm/issues/5994#issuecomment-1614601590 )
2023-06-30 17:08:03 +02:00
kkmuffme
62475cb4e8
code style
2023-06-29 14:42:23 +02:00
kkmuffme
2dd26cb0f1
Fix sprintf single arg splat array
...
Fix https://github.com/vimeo/psalm/issues/9873#issuecomment-1612901224
2023-06-29 13:47:42 +02:00
Yannick Gottschalk
7aac142a44
Added stub for PhpParser\Node\Name
2023-06-28 03:13:42 +02:00
Yannick Gottschalk
5a2f7c0a71
Use getParts() instead of $parts on PhpParser\Node\Name.
...
also use getFirst(), getLast() and getString()
2023-06-28 03:13:25 +02:00
kkmuffme
b877aa7096
misc consistency improvements for cache
2023-06-27 23:23:18 +02:00
kkmuffme
0584339657
if cache was created with missing composer.lock file use it too instead of ignoring it
2023-06-27 23:16:06 +02:00
orklah
086b943713
Merge pull request #9942 from ygottschalk/fix/9886-glob-callmap-stub-crash
...
Fix glob CallMap and stub to prevent crash on alpine
2023-06-27 18:39:49 +02:00
orklah
16f84c814a
Merge pull request #9967 from stof/patch-2
...
Fix the link reference in the doc
2023-06-27 18:29:37 +02:00
Christophe Coevoet
7e6e37b106
Fix the link reference in the doc
2023-06-27 17:56:03 +02:00
Yannick Gottschalk
f93d23899d
Fix glob CallMap and stub to prevent crash on alpine (and possibly other systems)
2023-06-25 13:17:13 +02:00
orklah
a0a9c27630
Merge pull request #9943 from kkmuffme/sprintf-php7-false-positive
...
fix PHP 7 sprintf too many arguments false positive
2023-06-24 19:05:12 +02:00
kkmuffme
d4dcee3203
code style
2023-06-24 18:11:15 +02:00
kkmuffme
0535c6b877
PHP 7 format with only placeholders isn't falsable if valid
...
limit tests to PHP 8 to avoid having to create them twice and add specific test for Issue 9941
2023-06-24 18:11:15 +02:00
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