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

14362 Commits

Author SHA1 Message Date
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
c6c7649af3 Fixup 2023-12-19 11:53:41 +01:00
kkmuffme
9e463bbe75 make tests work in PHP < 8.2 2023-12-19 11:37:14 +01:00
2fa024e98d Fixes 2023-12-19 11:36:06 +01:00
kkmuffme
1ff8518888 Fix https://github.com/vimeo/psalm/issues/9840 2023-12-19 11:07:11 +01:00
456a5cde16 Fixes 2023-12-19 10:57:16 +01:00
f1733c36ce Merge branch 'merge_5.x' 2023-12-19 10:47:21 +01:00
9b8251416f Merge remote-tracking branch 'vimeo/5.x' into HEAD 2023-12-19 10:41:33 +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
kkmuffme
d04694f4d4 Fix https://github.com/vimeo/psalm/issues/9267 2023-12-13 15:30:43 +01:00
kkmuffme
cceb1fb8c4 add missing phpdoc in new tests 2023-12-13 15:21:46 +01:00
kkmuffme
af3978281e remove previously broken test https://github.com/vimeo/psalm/issues/10487 2023-12-13 15:05:48 +01:00