1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 09:19:40 +01:00
Commit Graph

14094 Commits

Author SHA1 Message Date
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
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
kkmuffme
6363b57c33 fix bug equality assertion with int and float setting wrong type - required so previous commit works 2023-12-13 14:43:55 +01:00
kkmuffme
e6f24d91fd Fix https://psalm.dev/r/aada187f50 where 2 union types are not intersected and the condition contains both types 2023-12-13 14:10:22 +01:00
kkmuffme
108f626712 fix literal int/string comparisons only using one literal
Fix https://github.com/vimeo/psalm/issues/9552
2023-12-13 13:59:26 +01:00
Floris Luiten
e981778383
Fix "Cannot locate enable" with Symfony project
Fixes the "Cannot locate enable" error when using psalm-plugin enable with a Symfony project
2023-12-13 13:27:35 +01:00
orklah
955e7fe6a6
Merge pull request #10481 from kkmuffme/invalid-array-key-types-and-literal-string-as-int-key
report error for invalid array key type
2023-12-13 07:24:51 +01:00
kkmuffme
9be7fceb59 Fix literal string keys int not handled as int as PHP does
Fix https://github.com/vimeo/psalm/issues/8680
See also https://github.com/vimeo/psalm/issues/9295
2023-12-13 00:24:50 +01:00
kkmuffme
82ff582280 add error for invalid array key type in docblock 2023-12-13 00:23:14 +01:00
orklah
1df5b3580b
Merge pull request #10454 from kkmuffme/unsealed-not-nonempty-callable-param-should-be-valid
fix false positive ArgumentTypeCoercion for callback param
2023-12-12 21:26:24 +01:00
orklah
a5e15795ad
Merge pull request #10480 from danog/fix_10479
Use same parameter names in stubs
2023-12-12 21:23:26 +01:00
orklah
cdb9c54403
Merge pull request #10477 from kkmuffme/unused-variable-taint-should-not-modify-type-equals
Fix type not equal when parent
2023-12-12 21:23:03 +01:00
orklah
9a57645d7b
Merge pull request #10475 from kkmuffme/fix-old-psalm-version-in-tests
fix psalm v4 hardcoded in tests
2023-12-12 21:22:14 +01:00
761f390d9b Use same parameter names in stubs 2023-12-12 18:51:31 +01:00
kkmuffme
3c045b30a7 fix false positive ArgumentTypeCoercion for callback param when unsealed and all optional 2023-12-12 14:13:32 +01:00
kkmuffme
679a492609 other atomics 2023-12-12 13:54:35 +01:00
kkmuffme
0fd789cdcc Fix type not equal when parent
parent nodes are only populated if taint/unused variable analysis is enabled
2023-12-12 13:44:17 +01:00
kkmuffme
20ae081ee1 fix psalm v4 hardcoded in tests 2023-12-12 07:51:21 +01:00
orklah
f268dfa52d
Merge pull request #10456 from kkmuffme/update-cpu-counter-dependency
update fidry/cpu-core-counter dependency
2023-12-10 09:39:38 +01:00
orklah
5e221f3430
Merge pull request #10459 from kkmuffme/dont-combine-empty-string-with-numeric-string
dont combine empty string with numeric-string
2023-12-09 12:11:00 +01:00