orklah
|
f047d5bc53
|
allow suppressing unevaluatedCode
|
2021-12-29 00:44:48 +01:00 |
|
orklah
|
3828db52b9
|
Merge pull request #7229 from orklah/cleanup5
remove always true/false conditions
|
2021-12-27 22:08:06 +01:00 |
|
orklah
|
3ae80983cc
|
fix unused and CS
|
2021-12-27 20:10:39 +01:00 |
|
orklah
|
9029e1d613
|
remove always true/false conditions
|
2021-12-27 19:59:11 +01:00 |
|
adrew
|
87deb19a87
|
Remove dead code from test
|
2021-12-27 19:43:06 +03:00 |
|
adrew
|
c0ca383020
|
Contextual inference for closure param types
|
2021-12-27 19:35:37 +03:00 |
|
sji
|
a90456ed8b
|
trim whitespaces in namespaces specified at @psalm-internal
|
2021-12-27 02:31:11 +02:00 |
|
adrew
|
3d212c642c
|
Add test for mismatch param type from docblock
|
2021-12-27 00:45:26 +02:00 |
|
adrew
|
d6d0fc6704
|
Remove undefined variables
|
2021-12-27 00:45:25 +02:00 |
|
adrew
|
2e4d75d6bd
|
Fix closure param type inference in generic context
|
2021-12-27 00:45:22 +02:00 |
|
Bruce Weirdan
|
fb56d5ce58
|
Merge pull request #7210 from vstm/improve-cli-utils-argv-handling
|
2021-12-27 00:35:32 +02:00 |
|
orklah
|
d4fcb7f61c
|
handle literal equality with integer ranges
|
2021-12-26 21:09:27 +01:00 |
|
orklah
|
fb97980bf9
|
fix test
|
2021-12-26 19:27:13 +01:00 |
|
orklah
|
f7b6c4e1b6
|
escape more special chars in keyed array names that won't be read by the parser
|
2021-12-26 19:27:13 +01:00 |
|
Stefan Vetsch
|
3893abff72
|
Use directory separator to make test more portable
|
2021-12-24 15:55:24 +01:00 |
|
Stefan Vetsch
|
c3752b4a2b
|
Fix psalm issues
|
2021-12-24 10:59:39 +01:00 |
|
Stefan Vetsch
|
5331091f5e
|
Simplify argv handling, the first element is always the script name
|
2021-12-24 10:05:52 +01:00 |
|
Stefan Vetsch
|
ecc7400530
|
Add CliUtilsTest with test cases for old behaviour
|
2021-12-24 09:54:37 +01:00 |
|
orklah
|
2c9541c1ed
|
flag the context as "inside_conditional" when analyzing leftover cases to prevent emitting unused error
|
2021-12-23 22:18:27 +01:00 |
|
Philip Hofstetter
|
fdeb1954c2
|
update docs for enum case deprecation
|
2021-12-22 06:16:42 +01:00 |
|
Philip Hofstetter
|
e8e968e8c2
|
recognize Deprecated attribute on enum cases
just like with properties, this recognizes both `Psalm\Deprecated` and
`JetBrains\PhpStorm\Deprecated`
|
2021-12-22 06:16:42 +01:00 |
|
Philip Hofstetter
|
d45cb64827
|
allow marking enum cases as @deprecated
|
2021-12-22 06:16:42 +01:00 |
|
orklah
|
cc618bc916
|
allow successful destructuring to also be null if the source was nullable
|
2021-12-20 22:48:27 +01:00 |
|
orklah
|
639b1b94a3
|
fix stub and fix test
|
2021-12-20 09:57:06 +01:00 |
|
Matthew Brown
|
2e32a18222
|
Fix callable negation
|
2021-12-18 19:42:43 +00:00 |
|
S.M. Ataur Rahman
|
e408abf119
|
Fixed ignoreTypeStats & useStrictTypes flag value detection for directories in config
|
2021-12-18 19:59:25 +06:00 |
|
orklah
|
ba6a4d8af5
|
fix test
|
2021-12-17 00:16:50 +01:00 |
|
orklah
|
9583d6a7e7
|
invert stub, add test
|
2021-12-17 00:12:54 +01:00 |
|
Matthew Brown
|
89a1c5acbc
|
Fix faulty comparison with typed closure
|
2021-12-16 16:39:08 +00:00 |
|
Bruce Weirdan
|
7e97c5c84e
|
Merge pull request #7167 from AndrolGenhald/bugfix/7164-conflicting-fake-variable
|
2021-12-15 20:56:51 +02:00 |
|
orklah
|
16c0496d1c
|
Merge pull request #7157 from nowaja/master
ISSUE-5962 Fixed wrong line number for @method annotations
|
2021-12-15 18:37:26 +01:00 |
|
orklah
|
2dfe45a96e
|
Merge pull request #7152 from orklah/7109
display class-strings in keyed arrays syntax and allow using them for assertions
|
2021-12-15 18:36:40 +01:00 |
|
AndrolGenhald
|
03ccb9b548
|
Add test for nested array_map return type.
|
2021-12-15 11:09:10 -06:00 |
|
rarila
|
97e6511fab
|
Set number of lines before and after namespace.
|
2021-12-15 04:58:32 +01:00 |
|
rarila
|
7df7c1f070
|
Format declare(strict_types=1)
|
2021-12-15 04:42:37 +01:00 |
|
orklah
|
bb687aebba
|
add test
|
2021-12-15 00:51:59 +01:00 |
|
orklah
|
41fe5534b6
|
Merge pull request #7159 from AndrolGenhald/bugfix/number-format-optional-arguments
Fix optional arguments in number_format (fixes #7158).
|
2021-12-15 00:47:35 +01:00 |
|
orklah
|
5ddf5df10d
|
Merge pull request #7155 from rarila/partials-conversion-2
Convertion of partials to full imports
|
2021-12-15 00:39:20 +01:00 |
|
AndrolGenhald
|
10b6b9aef0
|
Fix optional arguments in number_format (fixes #7158).
|
2021-12-14 09:10:05 -06:00 |
|
Jakub Nowak
|
14c181f280
|
ISSUE-5962 Fixed wrong line number for @method annotations
|
2021-12-14 10:57:02 +01:00 |
|
ralila
|
6ee3d44092
|
Conversion of misc
|
2021-12-14 02:52:44 +01:00 |
|
rarila
|
1c298c4605
|
Conversion of Psalm\Type
|
2021-12-14 02:31:22 +01:00 |
|
ralila
|
e32af3c05a
|
Conversion of Psalm\Type\Atomic
|
2021-12-14 02:26:28 +01:00 |
|
ralila
|
fed7d1ef3b
|
Conversion of Psalm\Plugin\Hook\*Interface
|
2021-12-14 02:08:35 +01:00 |
|
S.M. Ataur Rahman
|
f4512361b2
|
"No errors found!" message is now printed within a nice green block
|
2021-12-14 00:50:32 +06:00 |
|
orklah
|
fb07d5819c
|
Merge pull request #7141 from mathroc/fix/in-array-return-type
in_array returns false in strict mode if types are incompatibles
|
2021-12-13 00:20:43 +01:00 |
|
Mathieu Rochette
|
39fb4222d5
|
in_array returns false in strict mode if types are incompatibles
see #5552
|
2021-12-13 00:00:53 +01:00 |
|
adrew
|
de0d3a3be3
|
Allow IssueBuffer::remove to remove recorded issues
|
2021-12-13 01:42:33 +03:00 |
|
adrew
|
a8d23538b7
|
Fix closure param type inference with named params
|
2021-12-12 13:17:15 +03:00 |
|
Bruce Weirdan
|
41ca7f7f7a
|
Merge pull request #7136 from klimick/forbid-positional-args-after-named
|
2021-12-12 02:22:51 +02:00 |
|