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

14015 Commits

Author SHA1 Message Date
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
Karl Thaler
b2e53f6cf8 Implement __set method in SimpleXMLElement 2024-01-09 15:28:23 -08:00
Sam L
c3a41d136d Bots 2024-01-09 17:49:07 -05:00
orklah
06b71be009
Merge pull request #10508 from ging-dev/bugfixes
fix: #10496 #10503
2024-01-09 22:02:43 +01:00
orklah
b4ad9c00c5
Merge pull request #10505 from kkmuffme/fix-readonly-properties-by-reference-not-reported
Add error when using readonly property in by-ref arg
2024-01-09 22:01:51 +01:00
orklah
6c98f25a69
Merge pull request #10500 from kkmuffme/callable-without-args-union-not-handled-correctly
Fix callable without args not handled correctly
2024-01-09 21:58:14 +01:00
orklah
abfbdedf53
Merge pull request #10498 from kkmuffme/filter-input-more-detailed
filter_input & filter_var return type more specific
2024-01-09 21:57:34 +01:00
orklah
e6a48e136e
Merge pull request #10483 from florisluiten/5.x
Fix GH-10465
2024-01-09 21:56:36 +01:00
orklah
8e577c8b26
Merge pull request #10532 from sj-i/improve-memory-usage
Reduce memory consumption of caching and parallel processing without igbinary
2024-01-08 23:13:20 +01:00
sji
1a3bba3e91 Reduce memory consumption of caching and parallel processing without igbinary 2024-01-09 06:42:49 +09:00
orklah
afc2df424f
Merge pull request #10524 from zerkms/10512_SessionUpdateTimestampHandlerInterface_Parameters
Fix #10512: Fixed SessionUpdateTimestampHandlerInterface parameter names
2024-01-03 00:16:04 +01:00
Ivan Kurnosov
891036ef3b Fixed SessionUpdateTimestampHandlerInterface parameter names
Close https://github.com/vimeo/psalm/issues/10512
2024-01-03 10:55:23 +13:00
Sam L
a60de4bac8 Whitelist suppressed issue types to for template extended params 2023-12-28 07:50:36 -05:00
Sam L
21617c7029 Include suppressed issues from the class the template is being used by 2023-12-28 07:50:36 -05:00
Sam L
1cb7dd9d72 Initial commit, issue-10490
Reproduce failure in unit test
2023-12-28 07:50:36 -05:00
ging-dev
5731f927fe fix: #10496 #10503 2023-12-20 17:16:21 +07:00
kkmuffme
9e463bbe75 make tests work in PHP < 8.2 2023-12-19 11:37:14 +01:00
kkmuffme
1ff8518888 Fix https://github.com/vimeo/psalm/issues/9840 2023-12-19 11:07:11 +01:00
kkmuffme
80dc208f0e fix other places that have a similar bug 2023-12-18 12:58:47 +01:00
kkmuffme
f8a53ebc5d Fix callable without args not handled correctly 2023-12-18 12:48:13 +01:00
kkmuffme
dee555daaf filter_input & filter_var return type more specific 2023-12-17 20:34:10 +01:00
orklah
b38530ed0d
Merge pull request #10497 from kkmuffme/strtok-improved-return-type
strtok always returns a non-empty-string when it does not return false
2023-12-17 20:23:14 +01:00
kkmuffme
06f6daeab2 strtok always returns a non-empty-string when it does not return false 2023-12-17 16:07:17 +01:00
orklah
b113f3ed02
Merge pull request #10493 from delolmo/override-attribute
Add support for Override attribute
2023-12-16 10:37:35 +01:00
Antonio del Olmo
d6cf9faebb
Add support for Override attribute 2023-12-15 11:14:53 +01:00
orklah
64dc2ff747
Merge pull request #10489 from iMu3ic/fix_pattern_length_check
Fix Uncaught RuntimeException: PHP Error: Uninitialized string offset 0 when $pattern is empty
2023-12-14 19:34:04 +01:00
mu3ic
c8748dc5c9 Add trim() in global use 2023-12-14 09:54:32 +03:00
mu3ic
2ce340782e Fix Uncaught RuntimeException: PHP Error: Uninitialized string offset 0 when $pattern is empty 2023-12-14 09:44:28 +03:00
orklah
3bc8cde539
Merge pull request #10488 from kkmuffme/invalidargument-false-not-true-param
add InvalidArgument error when passing false to true param
2023-12-13 18:48:51 +01:00
orklah
f7fe4cf026
Merge pull request #10484 from kkmuffme/literal-string-equality-removes-type-incorrectly-and-union-equality-incorrect-type
fix literal int/string comparisons only using one literal
2023-12-13 18:48:22 +01:00