rhertogh
fc85ecb1f6
Code style fixes for \Psalm\Tests\CommentAnalyzerTest ( https://app.circleci.com/pipelines/github/vimeo/psalm/11905/workflows/353387bb-1dcc-4527-9569-c83ebe43864c/jobs/39822 )
2023-07-06 18:31:26 +02:00
kkmuffme
9fd590685c
fix "days" ignore falsable return not ignored correctly
...
see Reflection.php, where the same condition was used already, but was insufficient
2023-07-06 08:21:27 +02:00
rhertogh
242a38c184
Allow space before array shape opening brace and added unit tests for \Psalm\Internal\Analyzer\CommentAnalyzer::splitDocLine()
2023-07-06 00:01:00 +02:00
kkmuffme
05f4e45026
more historical
2023-07-05 17:04:43 +02:00
kkmuffme
3d8629fddc
update historical
2023-07-05 16:58:14 +02:00
kkmuffme
ce7b78cf8f
offsetExists/Get/Set/Unset types were too generic since only array key types + null lead to expected results
2023-07-05 16:30:17 +02:00
orklah
8fe1f15791
Merge pull request #9993 from kkmuffme/allow-printf-with-1-arg
...
no error for printf with only 1 arg
2023-07-03 23:30:25 +02:00
kkmuffme
8d8adefb6c
no error for printf with only 1 arg
...
Fix https://github.com/vimeo/psalm/issues/9987
2023-07-03 22:59:02 +02:00
orklah
768b813330
Merge pull request #9992 from kkmuffme/make-stubbed-constant-types-configurable-with-comment
...
make stubbed constant types configurable with comment
2023-07-03 22:52:47 +02:00
kkmuffme
b4126326eb
make stubbed constant types configurable with comment
...
Fix https://github.com/vimeo/psalm/issues/4024
2023-07-03 22:28:25 +02:00
orklah
27798e69a0
Merge pull request #9970 from kkmuffme/missing-composer-lock-should-not-invalidate-cache-created-with-missing-composer-lock
...
Missing composer lock should not invalidate cache created with missing composer lock
2023-07-03 21:42:47 +02:00
orklah
1f92b8d822
Merge pull request #9988 from ygottschalk/fix/9968-exhume-enum
...
Fixed exhuming enums as enums, not as classes
2023-07-03 21:41:36 +02:00
orklah
a83c3fe325
Merge branch 'master' into missing-composer-lock-should-not-invalidate-cache-created-with-missing-composer-lock
2023-07-03 21:02:00 +02:00
orklah
9575bc319c
Merge branch 'master' into fix/9968-exhume-enum
2023-07-03 20:59:26 +02:00
orklah
3e54feb9b4
Merge pull request #9964 from ygottschalk/fix/phpparser-deprecation-name-parts
...
Fix/phpparser deprecation name parts
2023-07-03 20:59:09 +02:00
orklah
bc46938cbe
Merge pull request #9990 from ygottschalk/fix/9989-psalm-self-test
...
Fixed psalm self test
2023-07-03 20:56:20 +02:00
Yannick Gottschalk
bfd3cb889b
Added issue suppression
...
because constructor analysis of stubbed classes seems unsupported
2023-07-03 10:59:13 +02:00
Yannick Gottschalk
539aa4c644
Update version of phpparser
2023-07-03 10:58:59 +02:00
Yannick Gottschalk
e819a608fb
Added issue suppression
2023-07-03 10:40:54 +02:00
Yannick Gottschalk
42b3736c39
Fixed psalm self test
2023-07-03 10:28:16 +02:00
Yannick Gottschalk
1787960027
Fixed exhuming enums as enums, not as classes
2023-07-03 09:57:14 +02:00
orklah
8d1876a8a3
Merge pull request #9981 from kkmuffme/fix-replace-functions-return-type-provider-less-specific
...
fix mixed replace return types for arrays
2023-07-02 12:59:01 +02:00
orklah
53ce62bf28
Merge pull request #9975 from kkmuffme/sprintf-single-arg-splat-array
...
Fix sprintf single arg splat array
2023-07-02 10:08:08 +02:00
orklah
3c3d184de4
Merge pull request #9982 from ro0NL/patch-1
...
Infer output format from GITHUB_ACTIONS env
2023-07-02 10:00:03 +02:00
kkmuffme
0377dd9eda
code style
2023-07-02 09:45:55 +02:00
kkmuffme
d24df1a077
improve config validation and fix wrong condition
2023-07-02 09:00:53 +02:00
kkmuffme
7593b5bdc6
more code style and shepherd
2023-07-02 08:42:05 +02:00
kkmuffme
c2388b4d90
fix failing tests and shepherd
2023-07-02 08:33:43 +02:00
Roland Franssen :)
b525f9cf70
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
2023-07-01 17:01:49 +02:00
Roland Franssen :)
bf31ffbd92
Update Psalm.php
2023-07-01 16:56:33 +02:00
Roland Franssen :)
f07cdfc129
Update Psalm.php
2023-07-01 16:50:25 +02:00
Roland Franssen :)
039c526c58
Update PsalmRunnerTrait.php
2023-07-01 16:47:42 +02:00
Roland Franssen :)
33b0693c4f
ugh
2023-07-01 16:47:16 +02:00
Roland Franssen :)
010306fda8
Update Psalm.php
2023-07-01 14:00:12 +02:00
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