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

5922 Commits

Author SHA1 Message Date
robchett
84ed631a9f Correct test min php version 2023-11-09 16:18:36 +00:00
robchett
80edd41858 Fix failing tests with invalid code 2023-11-09 15:57:42 +00:00
robchett
ac465067e3 Warn if @method annotation contradicts concrete function
Fixes #5990
2023-11-09 15:43:28 +00:00
robchett
975d59032b Don't inherit psuedo methods from parent if a concrete implementation exists
Fixes #4546
2023-11-09 15:43:28 +00:00
robchett
68d6d9b70b Trigger ImplementedParamTypeMismatch if concrete implementation of magic method does not match the magic method signature
Fixes #3871
2023-11-09 15:43:28 +00:00
robchett
44f9440664 Only inherit docblock param type if they type was not expanded
fixes this issue: https://psalm.dev/r/edaea88e00
2023-11-09 15:43:28 +00:00
robchett
61f02d8889 Detect magic method signature mismatch on interfaces
Fixes #5786
2023-11-09 14:20:01 +00:00
orklah
7233f38805
Merge pull request #10263 from robchett/maintain_loop_start_val_after_increment
Maintain loop start val after increment/decrement
2023-11-04 09:59:05 +01:00
orklah
d041b652cd
Merge pull request #10344 from robchett/seal_method_seal_properties_without_prefix
Support @(no-)seal-(properties|methods) annotations without prefix
2023-11-04 09:57:52 +01:00
orklah
f147344741
Merge pull request #10341 from robchett/report_unused_issue_handler_suppressions
Report unused issue handler suppressions
2023-11-04 09:57:16 +01:00
robchett
fecc4eb274 Rework test as it was a false negative 2023-11-03 21:42:17 +00:00
robchett
8414d70a77 Better reconciling of ++/-- operators in ints 2023-11-03 21:42:17 +00:00
robchett
d925bf5226 Correct decrement min/max ranges 2023-11-03 21:42:17 +00:00
robchett
ec5eae3347 Maintain loop start value after an increment 2023-11-03 21:42:17 +00:00
robchett
70a83c8e2a Skip inline docblocks like {@see ...} 2023-11-03 21:41:48 +00:00
robchett
e76db142f8 Suppress '@template T as' test failures 2023-11-03 21:41:48 +00:00
robchett
39ac69b643 Fix parsing of class-string-map<T of Foo, T> 2023-11-03 21:41:48 +00:00
robchett
934383e036 Fix for spaces after , in multiline docblock types 2023-11-03 21:41:48 +00:00
robchett
d05bd5430d Use CommentAnalyzer::sanitizeDocblockType consistently 2023-11-03 21:41:48 +00:00
robchett
3448c47931 Warn when an issue handler suppression is unused 2023-11-03 21:41:06 +00:00
robchett
54999abc54 Allow (no-)seal-(properties|methods) without the psalm- prefix 2023-11-03 21:40:37 +00:00
orklah
e6564c6126
Merge pull request #10339 from robchett/global_const_as_enum_case
Allow enum cases to be global constants
2023-11-03 20:58:07 +01:00
robchett
97a7cf8452 Allow enum cases to be global constants 2023-11-02 12:30:24 +00:00
RobChett
6044cc702c Combining a array value empty list with a non-empty list was returning a non-empty-list 2023-10-26 05:50:55 +01: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