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

5899 Commits

Author SHA1 Message Date
robchett
97a7cf8452 Allow enum cases to be global constants 2023-11-02 12:30:24 +00:00
e72fb5a2b3 Fix 2023-10-22 20:22:01 +02:00
292ed06323 Fix 2023-10-22 20:13:31 +02:00
e8b7b30043 Fixes 2023-10-22 20:11:28 +02:00
71483b72aa Merge remote-tracking branch 'origin/5.x' into v6_fixes 2023-10-22 20:08:39 +02:00
3b66272aa0 More rector fixes 2023-10-21 20:45:09 +02:00
394e38599d Strict types everywhere 2023-10-19 13:12:06 +02:00
ec959e95d7 Merge remote-tracking branch 'origin/master' into strict_types 2023-10-19 11:28:39 +02:00
576e4d2bc4 Fix method calls and property accesses after extension_loaded 2023-10-19 11:16:20 +02:00
orklah
24168f6c58
Merge pull request #9794 from robchett/remove_TCallableArray_and_TCallableList
Improved type of callable-array
2023-10-17 23:38:12 +02:00
orklah
5a862784ac
Merge pull request #10289 from ging-dev/add-fix
Additional caching fixes
2023-10-17 20:32:03 +02:00
robchett
e2d1e83b87 Fix memory explosion with calls to method_exists 2023-10-17 19:15:23 +01:00
ging-dev
8ee875086f chore: add failing test 2023-10-17 20:17:15 +07:00
ging-dev
0162e75ee8 fix: #10080 2023-10-17 02:43:22 +07:00
orklah
b432d812fb
Merge pull request #10274 from tuqqu/enum-case-value-type-from-class-constant
Fix inferring enum case value from a class constant
2023-10-16 20:25:11 +02:00
orklah
7a7d6a25af
Merge pull request #10242 from cgocast/5.x
Allow tainted numerics except for 'html' and 'has_quotes'
2023-10-16 20:17:39 +02:00
tuqqu
6039e2be9b Fix for inferring enum case value from a class constant 2023-10-10 22:56:36 +02:00
robchett
6de539e047 Fix falsable issues with file i/o functions 2023-10-10 00:04:16 +01:00
robchett
5a43e99d15 Fix falsable return issues from array functions, reset/key/shift 2023-10-10 00:04:16 +01:00
robchett
276a25de92 Fix falsable issues with json_encode 2023-10-10 00:04:16 +01:00
robchett
f94df41d76 Fix issues with nullable preg_replace 2023-10-10 00:04:16 +01:00
robchett
70507717c4 Fix falsable issues with ob_get_clean in tests 2023-10-09 23:42:59 +01:00
robchett
5e667ef35d Fix falsable calls to getcwd in /tests 2023-10-09 23:42:59 +01:00
robchett
55124181e7 Ignore internal null/false for unit test code 2023-10-09 23:42:59 +01:00
robchett
889bdca461 The function in a callable-array is a non-empty-string 2023-10-09 19:58:05 +01:00
orklah
ee4e8aa720
Merge pull request #10271 from klimick/type-check-nested-templates
Type check nested templates
2023-10-09 19:47:15 +02:00
RobChett
df6b5fbb75 Update tests for new callable-array shape 2023-10-09 18:04:02 +01:00
RobChett
922e57d86b Formatting 2023-10-09 18:04:02 +01:00
RobChett
f0c9bee421 Improve destructured type of callable-array 2023-10-09 18:04:02 +01:00
orklah
3f7306d8df
Merge pull request #10254 from tuqqu/never-function-return-error-message
Fix error message for implicitly returning functions with `never` return type
2023-10-09 18:51:11 +02:00
klimick
a3df6505f0 Type check nested templates 2023-10-09 17:07:52 +03:00
cgocast
eea7c33309
Merge branch 'vimeo:5.x' into 5.x 2023-10-09 14:17:50 +02:00
tuqqu
8edb886ce3 Test cases for DuplicateProperty issue for Trait 2023-10-09 01:13:25 +02:00
tuqqu
e0c804d732 Test cases for DuplicateProperty issue 2023-10-09 01:13:18 +02:00
tuqqu
a4cebb2cb8 Disallow never type for parameters 2023-10-08 20:47:37 +02:00
orklah
16be90c351
Merge pull request #10262 from robchett/negated_class_exist_convert_class-string_to_string
Negated class_exist check on class-string converts to string instead of mixed
2023-10-08 19:09:14 +02:00
orklah
67ac81e220
Merge pull request #10261 from robchett/allow_named_params_for_callables
Allow parameter names in callable docblocks with templates
2023-10-08 19:08:23 +02:00
robchett
d874aab881 Add alias support to psalm-check-type 2023-10-08 17:46:59 +01:00
robchett
c729fcd5c8 Negated class_exist check on class-string converts to string instead of mixed 2023-10-08 15:48:48 +01:00
robchett
fc7f846fbd Fix test case for named variadic callable docblock 2023-10-07 16:59:43 +01:00
robchett
c71a252dee Add tests for callable docblock parsing 2023-10-07 16:04:48 +01:00
tuqqu
2bc330976f Add tests for never return type 2023-10-04 21:18:59 +02:00
tuqqu
9f9e5f1e18 Emit MethodSignatureMismatch when descendant does not return by reference 2023-10-03 03:41:11 +02:00
cgocast
2eca720e9d Merge branch '5.x' of https://github.com/cgocast/psalm into 5.x 2023-10-02 15:13:07 +02:00
cgocast
94a98ccddd Allow tainted numerics except for 'html' and 'has_quotes' 2023-10-02 15:08:26 +02:00
orklah
c67dce7d14
Merge pull request #10240 from ging-dev/cache
fix: #10239
2023-09-30 18:26:59 +02:00
ging-dev
c312c76050 chore: add test 2023-09-30 17:33:50 +07:00
orklah
1b12255fb1
Merge pull request #10183 from cgocast/master
Detect DoS by sleep vimeo#10178
2023-09-29 13:27:43 +02:00
orklah
db07b05156
Merge pull request #10231 from MidnightDesign/sprintf-stringable-values
Allow stringable objects in `sprintf()` values
2023-09-29 11:38:37 +02:00
Rudolph Gottesheim
c4c8ef53c4 Delete an invalid test 2023-09-29 11:27:36 +02:00