83069ffd06
cs-fix
2024-04-11 21:17:11 +02:00
463c7dc452
Fix psalm
2024-04-11 21:09:12 +02:00
9e4c2a6362
Fix
2024-04-11 20:34:31 +02:00
683f63b7f7
Kill all children before throwing
2024-04-11 20:27:24 +02:00
e93ecbe1d0
Throw exception instead of silently logging issues occurred during scan
2024-04-11 20:23:02 +02:00
orklah
7d6c88e88a
Merge pull request #10885 from kkmuffme/unknown-psalm-annotation-should-not-make-docblock-invalid
...
Unknown @psalm annotation should not make whole docblock invalid
2024-04-06 20:17:07 +02:00
kkmuffme
db7bdd81ac
Fix https://github.com/vimeo/psalm/issues/10880
2024-04-06 10:19:18 +02:00
Bruce Weirdan
eaeb979222
Merge pull request #10866 from kkmuffme/document-psalm-internal-namespace-class
2024-03-28 01:51:21 +01:00
kkmuffme
c8f0671b33
document that @psalm-internal works for namespace + class too
...
as used in https://github.com/vimeo/psalm/issues/9584
2024-03-28 00:16:23 +01:00
Bruce Weirdan
4b01704558
Merge pull request #10859 from jorgsowa/specify-array-return-of-session_get_cookie_param
2024-03-25 23:16:26 +01:00
Bruce Weirdan
dee88f5a53
Merge pull request #10858 from edsrzf/handle-stringable-override
2024-03-25 23:04:45 +01:00
Jorg Sowa
c5fc82c449
Define historical definitions of session_get_cookie_param
2024-03-25 23:04:26 +01:00
Evan Shaw
6269b804a0
Don't emit MissingOverrideAttribute for implicit Stringable implementations
2024-03-26 08:31:33 +13:00
Bruce Weirdan
fb7278ea3e
Merge pull request #10856 from simonberger/patch-10739
2024-03-25 01:35:28 +01:00
Simon Berger
7128f0d7d3
Fix storage not available in thread for intersection doc types
2024-03-24 22:37:10 +01:00
Bruce Weirdan
85ff673099
Merge pull request #10814 from kkmuffme/int-string-keys-arrays-are-int
2024-03-23 02:08:19 +01:00
kkmuffme
1bfa684d7f
scientific and underscore notation should be quoted too, since they won't be type juggled
2024-03-23 01:18:23 +01:00
kkmuffme
cd302f040b
further improve string-int juggling handling which was previously already improved by me in https://github.com/vimeo/psalm/pull/10481
...
Also fix https://psalm.dev/r/3b401c6f88
2024-03-22 23:20:57 +01:00
kkmuffme
6030995d8d
separate fix of https://github.com/vimeo/psalm/pull/10481 to a reusable function
2024-03-22 20:03:33 +01:00
kkmuffme
120e3122b5
fix tests
2024-03-22 14:25:12 +01:00
kkmuffme
1b91f566c4
add tests for int-like string array keys
2024-03-22 14:25:12 +01:00
Jorg Sowa
3e493d95a4
Specified array return type of session_get_cookie_params
2024-03-22 00:53:27 +01:00
Bruce Weirdan
63ea4de701
Merge pull request #10847 from ThomasLandauer/patch-1
2024-03-21 21:18:02 +01:00
Thomas Landauer
2ae91aa95c
Update CallMap_historical.php
2024-03-21 20:33:41 +01:00
Thomas Landauer
2f908817d4
Update CallMap.php
2024-03-21 18:34:34 +01:00
Bruce Weirdan
4266a8e044
Merge pull request #10839 from kkmuffme/misc-class-callable-errors-not-reported
2024-03-20 05:51:34 +01:00
Bruce Weirdan
375fe32992
Update tests/CallableTest.php
2024-03-20 05:32:13 +01:00
Bruce Weirdan
b47449fa89
Merge pull request #10817 from kkmuffme/promoted-properties-not-set-in-extended-constructor
2024-03-20 02:44:01 +01:00
Bruce Weirdan
70530d6a0c
Merge pull request #10756 from edsrzf/array-isset
2024-03-20 02:27:19 +01:00
Evan Shaw
4b707d1233
Additional array fetch test case
2024-03-20 02:18:31 +01:00
Evan Shaw
30e797b5fd
Update baseline
2024-03-20 02:18:31 +01:00
Evan Shaw
86173d29c9
When inside isset, array fetch can return null
...
This prevents false positive for various types of issues inside empty,
such as RedundantConditionGivenDocblockType and TypeDoesNotContainType.
2024-03-20 02:18:31 +01:00
Bruce Weirdan
cc5ad67494
Merge pull request #10821 from kkmuffme/consistent-constructor-param-name-mismatch
2024-03-20 02:07:36 +01:00
kkmuffme
9cfce37785
ParamNameMismatch not reported for __construct
...
Fix https://github.com/vimeo/psalm/issues/10784
2024-03-20 02:01:34 +01:00
Bruce Weirdan
3a1b10f211
Merge pull request #10828 from jack-worman/MissingClassConstType
2024-03-20 01:58:50 +01:00
Bruce Weirdan
2c1ac98439
Merge pull request #10815 from pilif/filter_var-named-args
2024-03-20 01:49:26 +01:00
Bruce Weirdan
98eab1fe23
Merge pull request #10822 from kkmuffme/report-param-name-mismatch-for-single-param-too
2024-03-20 01:34:53 +01:00
Bruce Weirdan
c5adc51f10
Merge pull request #10824 from kkmuffme/update-misc-deprecated-arg-types-PHP81-83
2024-03-20 01:26:46 +01:00
Bruce Weirdan
e3d55268f9
Merge pull request #10838 from kkmuffme/undefined-parent-not-reported-in-callable
2024-03-20 01:08:45 +01:00
kkmuffme
e83530a6c1
report invalid callable if callable cannot be called like this from current context
...
Fix https://github.com/vimeo/psalm/issues/10823
Fix https://github.com/vimeo/psalm/issues/8509
2024-03-20 01:02:54 +01:00
kkmuffme
a59248f5a1
self, parent and static in callable are deprecated since PHP 8.2
...
Fix https://github.com/vimeo/psalm/issues/10837
2024-03-20 01:02:54 +01:00
Bruce Weirdan
f61c7e108f
Merge pull request #10805 from weirdan/10461-allow-more-callable-types-as-subtypes-of-callable
2024-03-20 00:17:24 +01:00
Bruce Weirdan
4b7957b789
Merge pull request #10829 from vimeo/isTypeContainedByType_flags
2024-03-20 00:13:38 +01:00
Bruce Weirdan
644ef8d573
Merge pull request #10832 from Ayesh/php84/nullability
2024-03-20 00:11:42 +01:00
45d9fbeb68
Merge pull request #10843 from kkmuffme/fix-psalm-6-notice-in-tests-config
...
Explicitly set value in config to fix warning in tests
2024-03-20 00:03:18 +01:00
kkmuffme
8efbf386c3
fix bad class
2024-03-19 21:17:26 +01:00
kkmuffme
ea825c626d
Explicitly set value in config to fix warning in tests
2024-03-19 21:06:20 +01:00
e8e1f47ddb
Merge pull request #10842 from kkmuffme/fix-tests-using-other-than-called-from-php-version
...
fix tests running with other than called PHP binary if called with a non-default PHP binary
2024-03-19 13:47:01 +01:00
kkmuffme
881546340c
fix tests running with other than called PHP binary if called with a non-default PHP binary
...
e.g. you run the tests with a php83 executable but your default php is PHP 7.4, it will suddenly change while running the tests leading to false positive errors
2024-03-19 13:26:25 +01:00
kkmuffme
ff168a9c7a
Fix undefined parent not reported in callable
...
Fix https://github.com/vimeo/psalm/issues/10836
2024-03-16 21:45:24 +01:00