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

14224 Commits

Author SHA1 Message Date
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
kkmuffme
5fccb33938 dont combine empty string with numeric-string
Fix https://github.com/vimeo/psalm/issues/6646
2023-12-07 20:05:16 +01:00
orklah
93c7a8fd63
Merge pull request #10452 from theodorejb/patch-1
Fix remaining POSIX-only absolute path detection
2023-12-07 18:08:57 +01:00
orklah
b87427ff6b
Merge pull request #10463 from kkmuffme/fix-scripts-running-with-inconsistent-php-versions
fix composer scripts running with inconsistent php versions
2023-12-07 18:08:23 +01:00
orklah
f4e9837e27
Merge pull request #10450 from nicelocal/fix_class_string_key
Fix shaped array class string key combination
2023-12-07 17:52:15 +01:00
orklah
0c6d9d37d1
Merge pull request #10455 from nicelocal/small_assertion_fix
Small assertion fix
2023-12-07 17:51:57 +01:00
orklah
ea06da7034
Merge pull request #10457 from nicelocal/always_emit_AfterCodebasePopulatedEvent
Emit AfterCodebasePopulatedEvent even on partial scans
2023-12-07 17:51:24 +01:00
orklah
bc71da47e7
Merge pull request #10464 from danog/fix_10460
Fix #10460
2023-12-07 17:37:10 +01:00
576ecd66e6 Fix #10460 2023-12-07 17:29:22 +01:00
kkmuffme
951fa2292a fix composer scripts running with inconsistent php versions 2023-12-07 17:20:37 +01:00
0d3485b588 Commit just first part of fix for now 2023-12-07 13:04:59 +01:00
d5bac4d51d Emit AfterCodebasePopulatedEvent even on partial scans 2023-12-07 12:46:34 +01:00
6650bd8a57 cs-fix 2023-12-07 12:31:21 +01:00
kkmuffme
bfd167515b the new version has no changes 2023-12-07 12:25:03 +01:00
dbded437ad Small assertion fix 2023-12-07 12:20:55 +01:00
Theodore Brown
b5ee6e0d8b Replace remaining POSIX only absolute path detection
These were missed in #10441. Fixes "Could not resolve config path" error on Windows (#10418).
2023-12-06 13:48:06 -06:00
76458e0b50 Add test 2023-12-06 14:52:54 +01:00
d3b7f3f0b4 Fix 2023-12-06 14:47:24 +01:00
527b04dde6 Fix 2023-12-06 14:24:17 +01:00
4ed0fe934f Fix shaped array class string key combination 2023-12-06 14:12:19 +01:00
orklah
c620f6e80d
Merge pull request #10439 from nicelocal/fix_literal_union_key
Use keyed arrays when assigning literal union keys & assertion fixes
2023-12-03 21:21:41 +01:00