1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
Commit Graph

14349 Commits

Author SHA1 Message Date
0ba0928f94 Try bumping PHP on windows CI 2024-01-17 13:52:58 +01:00
2a7d6d2750 cs-fix 2024-01-17 13:45:40 +01:00
11e2163ce3 Update baseline 2024-01-17 13:43:35 +01:00
950293c6e7 Fixup test 2024-01-17 13:37:23 +01:00
823c9180fd Fixup 2024-01-17 13:32:15 +01:00
4e5e30633b Fixup 2024-01-17 13:29:08 +01:00
680c8cd39d
Merge pull request #10502 from kkmuffme/warn-for-non-strict-comparisons-on-truthy-falsy-types
report error for non-strict or empty comparison on truthy+falsy union
2024-01-17 13:00:11 +01:00
0504394e8b Fixup 2024-01-17 12:52:36 +01:00
kkmuffme
a3a13241a7 fix baseline somehow incorrect paths 2024-01-17 12:41:58 +01:00
645e59ee53 cs-fix 2024-01-15 17:36:32 +01:00
a1b8b3d281 Merge remote-tracking branch 'vimeo/master' 2024-01-15 14:11:53 +01:00
64868c5c9f
Merge pull request #10504 from danog/merge_5.x
Merge 5.x
2024-01-15 14:07:42 +01:00
adeca9341d Bump 2024-01-15 14:04:24 +01:00
3a263d2cd1 Bump 2024-01-15 13:58:32 +01:00
a032c6e1cd Ignore test issues bypassed by bypass-finals 2024-01-15 13:47:06 +01:00
556d24ec45 Update baseline 2024-01-15 13:45:08 +01:00
d12cdf6d42 Cleanup 2024-01-15 13:27:53 +01:00
c9fe76cadc Patch 2024-01-15 13:16:41 +01:00
3f82312ffa Merge remote-tracking branch 'vimeo/5.x' into merge_5.x 2024-01-15 13:08:20 +01:00
4dd06f7296 Revert #10361 2024-01-15 13:07:06 +01:00
kkmuffme
4b41891829 update baseline 2024-01-15 10:33:46 +01:00
kkmuffme
f34ec2c81e change error level to 2 2024-01-15 10:11:22 +01:00
kkmuffme
5643cf53d4 fix mixed test not actually checking mixed (since superglobals have a more specific type now) 2024-01-15 10:11:22 +01:00
kkmuffme
2414070849 simplify and remove redundant variable 2024-01-15 10:11:22 +01:00
kkmuffme
dca17bcb6a unrelated fix spelling 2024-01-15 10:11:22 +01:00
kkmuffme
93dc2219e0 fix bugs in tests 2024-01-15 10:11:22 +01:00
kkmuffme
19b1a33a20 fix possibly undefined array key in keyed array doesnt include null when not validated
Fix https://psalm.dev/r/b153d0d248 to return 'a'|null instead of 'a' - this is required as otherwise empty would report RedundantCondition errors now which would bring back https://github.com/vimeo/psalm/issues/2681
2024-01-15 10:11:22 +01:00
kkmuffme
63ea734f26 fix shepherd issue 2024-01-15 10:11:22 +01:00
kkmuffme
fb93aede12 create a separate issue type 2024-01-15 10:11:21 +01:00
kkmuffme
f3543ca9ab add the fix for empty() too and fix empty returning bool on true/false only cases hiding errors when functions called 2024-01-15 10:11:21 +01:00
kkmuffme
d5b713e439 Fix https://github.com/vimeo/psalm/issues/10501 - report error for non-strict comparison on truthy+falsy union 2024-01-15 10:11:21 +01:00
orklah
b9583493b0
Merge pull request #10499 from kkmuffme/fix-empty-string-becomes-non-empty-string-when-literal-strings-disabled
Fix empty literal string becomes non-empty-string
2024-01-14 23:41:50 +01:00
orklah
c04eb4c96d
Merge pull request #10542 from kkmuffme/remove-duplicate-directory-separator-in-error-message
remove redundat directory separator which caused "//" in path not found errors
2024-01-14 23:41:06 +01:00
orklah
6e8692513a
Merge pull request #10544 from kkmuffme/improve-extract-variable-assignments
add support for extract to set variables for keyed arrays and respect EXTR_SKIP
2024-01-14 23:40:39 +01:00
orklah
48ef3c474c
Merge pull request #10545 from kkmuffme/basename-dirname-return-type-more-specific
make basename & dirname return types more specific
2024-01-14 23:39:59 +01:00
kkmuffme
f940c029e1 make basename & dirname return types more specific 2024-01-14 19:01:46 +01:00
kkmuffme
02467fbb6a add support for extract to set variables for keyed arrays and respect EXTR_SKIP 2024-01-14 10:54:02 +01:00
kkmuffme
4c54b68f30 code style 2024-01-13 17:12:41 +01:00
kkmuffme
7f0f0bc361 ensure concat https://psalm.dev/r/323e33ae8a will be a non-falsy-string 2024-01-13 17:10:19 +01:00
kkmuffme
4092618260 should be non-falsy-string instead of non-empty-string in most cases 2024-01-13 17:10:02 +01:00
kkmuffme
a2bf5cb054 Fix empty literal string becomes non-empty-string
when max literal string length is 0, which means literal strings are disabled
2024-01-13 16:23:16 +01:00
kkmuffme
6f184dca91 remove redundat directory separator which caused "//" in path not found errors 2024-01-13 12:17:24 +01:00
orklah
079bfb837c
Merge pull request #10543 from kkmuffme/fix-mb-get-info-wrong-type-failing-ci
Fix mb_get_info can return null - CI failing bc of reflection
2024-01-13 01:40:53 +01:00
kkmuffme
d209bab9f5 Fix mb_get_info can return null - CI failing bc of reflection
See https://github.com/php/php-src/issues/12753
2024-01-13 01:12:34 +01:00
orklah
5d1d5a2e57
Merge pull request #10540 from kkmuffme/make-getrandmax-type-more-specific
Make getrandmax type more specific and unserialize to require class-string
2024-01-11 19:46:18 +01:00
kkmuffme
7658fc4d33 unserialize change to class-string 2024-01-11 18:43:15 +01:00
kkmuffme
f04be62e8b can only be positive 2024-01-11 18:40:45 +01:00
orklah
26ae950085
Merge pull request #10536 from kthaler/simplexml-set-method
Implement __set method in SimpleXMLElement stub
2024-01-10 22:48:27 +01:00
Karl Thaler
138b47a04f Omit property assignment tests for SimpleXMLElement 2024-01-10 13:07:32 -08:00
orklah
17cd6a7968
Merge pull request #10518 from samlitowitz/issue-10490
Deprecated Template Classes are not ignored by @psalm-suppress DeprecatedClass
2024-01-10 22:01:02 +01:00