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

14020 Commits

Author SHA1 Message Date
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
orklah
b65e095ea0
Merge pull request #10264 from robchett/support_aliases_for_check_type
Add alias support to psalm-check-type
2023-10-08 19:07:45 +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
robchett
a93b35853e Allow names in callable docblocks 2023-10-07 14:49:21 +01:00
tuqqu
2bc330976f Add tests for never return type 2023-10-04 21:18:59 +02:00
tuqqu
2a910d1f17 Changed error message for never return error 2023-10-04 21:00:04 +02:00
tuqqu
413f1d6ce3 Fix error message for returning function with never return type 2023-10-04 20:51:31 +02:00
orklah
69d5881d56
Merge pull request #10248 from tuqqu/check-return-by-ref-in-descendant-method
Emit `MethodSignatureMismatch` when descendant does not return by reference
2023-10-03 07:41:10 +02:00
orklah
8d35034b77
Merge pull request #10244 from tuqqu/socket-shutdown-fix
Add stream_socket_shutdown socket_shutdown to impure function list
2023-10-03 07:39:47 +02:00
tuqqu
9f9e5f1e18 Emit MethodSignatureMismatch when descendant does not return by reference 2023-10-03 03:41:11 +02:00
tuqqu
2baa094f58 Remove duplicate from impure list 2023-10-03 02:17:26 +02:00
tuqqu
b05ffeaf20 Add socket_shutdown stream_socket_shutdown functions to impure list 2023-10-03 02:17:08 +02:00
orklah
3a8f2d2a07
Merge pull request #10241 from kkmuffme/remove-duplicate-namespace-in-internal-method-error
Remove duplicate namespace in InternalMethod error message
2023-10-02 21:35:54 +02:00
cgocast
e0c24cbe7a Remove unused parents_nodes 2023-10-02 15:38:01 +02:00
cgocast
6eb40e7897 Fix code style 2023-10-02 15:22:57 +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
kkmuffme
1306b62fed code style 2023-10-01 21:35:45 +02:00
kkmuffme
480708637b Fix https://psalm.dev/r/77be914054 2023-10-01 21:32:34 +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
ging-dev
f8c225c576 fix: #10239 2023-09-30 10:36:21 +07: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
orklah
2d3a625379
Merge pull request #10230 from ging-dev/lsp
feat(LSP): Improve the autocomplete for nested array shape
2023-09-28 23:42:02 +02:00
orklah
f57088646b
Merge pull request #10191 from boesing/bugfix/inherited-conditional-return-types
Resolve inherited conditional return types
2023-09-28 23:08:20 +02:00
orklah
bbcf50396d
Merge pull request #10189 from boesing/feature/inherited-assertions-v2
Inherited assertions v2
2023-09-28 23:07:15 +02:00
orklah
e110305644
Merge pull request #10237 from cgocast/5.x
Loop over PDOStatement::fetch() arguments
2023-09-28 23:03:26 +02:00
cgocast
d9400ba191 Handle possibly null $arg_type 2023-09-28 15:34:05 +02:00
cgocast
55843b5ac8 Handle positional argument 2023-09-28 15:23:35 +02:00
cgocast
2217f5e118 Loop over PDOStatement::fetch() arguments 2023-09-28 14:37:44 +02:00
Rudolph Gottesheim
87e0bbcf89 Allow passing stringable-objects to sprintf() in all PHP versions 2023-09-28 10:23:02 +02:00
Rudolph Gottesheim
aa04c0063b Allow Stringable in sprintf() values 2023-09-28 10:23:02 +02:00
orklah
83485f3fcf
Merge pull request #10234 from tuqqu/block-mode-declare-check
Check for declare strict_types in block mode
2023-09-28 09:13:13 +02:00
orklah
a8ef5a213d
Merge pull request #10202 from gmessier/issue-handlers-priority
Issue handlers priority
2023-09-28 09:09:33 +02:00
orklah
a843c30950
Merge pull request #10207 from boesing/bugfix/issue-10203
Allow object assertions for `mixed` values
2023-09-28 09:08:43 +02:00
orklah
d7236efd76
Merge pull request #10194 from MidnightDesign/issue-8582
Allow class-string<T> where T is a union
2023-09-28 09:04:57 +02:00
tuqqu
09fbe99f5b Check for declare strict types block mode 2023-09-26 20:59:06 +02:00
orklah
a70b2c0fbf
Merge pull request #10214 from kkmuffme/filter-var-sanitize-url
add FILTER_SANITIZE_URL filter to filter_var
2023-09-26 16:20:53 +02:00
ging-dev
45807e27b8 feat(LSP): Improve the autocomplete for nested array shape 2023-09-26 01:52:23 +07:00
kkmuffme
c6648aff87 add FILTER_SANITIZE_URL filter to filter_var 2023-09-18 14:51:20 +02:00
Rudolph Gottesheim
3b775f4617 Allow class-string<T> where T is a union 2023-09-18 12:13:34 +02:00
orklah
7d8d74d32a
Merge pull request #10210 from robchett/add_impure_openssl_functions
Add openssl_*_export_to_file to impure functions
2023-09-17 16:06:40 +02:00
robchett
b96d5a3eba Add openssl_*_export_to_file to impure functions 2023-09-17 11:37:52 +01:00
orklah
ab470b41bd
Merge pull request #10209 from robchett/array_binary_ops
Only the binary op 'plus' works with two arrays
2023-09-16 20:05:05 +02:00
robchett
03e8d19eec Only the binary op 'plus' works with two arrays
Treat the result of any other operation as int|float
Fixes #2123
2023-09-16 15:55:59 +01:00