Alies Lapatsin
5a3ac0e6ee
Merge branch 'master' into unify-deprecation-messages
2023-01-29 18:32:46 +01:00
Alies Lapatsin
7526d60f2a
Update assertion to reflect a new output
...
It reverts 588d9e08bc (diff-1ef46093f20172c4dc1cbe5a54e5b60c255082acd3f7c382dae621d8d23df404R172)
2023-01-29 18:32:31 +01:00
Alies Lapatsin
d49b35c92a
Merge branch 'master' into unify-deprecation-messages
2023-01-26 23:02:59 +01:00
Andrew Nagy
3c38e02b62
allow dynamically changing configuration without restarting
2023-01-26 09:40:07 +00:00
Andrew Nagy
468e7e7d45
add cli command to turn off xdebug turnoff functionality, fix bug with docblock
2023-01-26 09:12:43 +00:00
Andrew Nagy
27c0caf2fb
Fixes #9180 allow baseline file
2023-01-25 18:13:27 +00:00
orklah
aec0edc618
Merge pull request #9177 from Nicelocal/duplicate_keys
...
Detect duplicate keys in array shapes
2023-01-25 18:37:22 +01:00
Andrew Nagy
b14ed73c0b
Merge tag '5.6.0' into feature/upgrade-lsp-v5
2023-01-25 17:08:24 +00:00
Bruce Weirdan
0682adf3e4
Merge pull request #9173 from shvlv/feature/support-class-constants-for-phpstorm-meta-override
2023-01-25 12:31:17 -04:00
Bruce Weirdan
242fbf4bff
Merge pull request #9184 from jack-worman/cdata_in_baseline
2023-01-25 12:30:52 -04:00
Jack Worman
375cdeb636
cdata in baseline
2023-01-25 10:57:28 -05:00
Jack Worman
32581a71fd
cdata in baseline
2023-01-25 10:54:33 -05:00
40a05d574a
Improve error messages
2023-01-25 12:26:59 +01:00
247d30f74c
Detect duplicate keys in array shapes
2023-01-25 10:42:05 +01:00
shvlv
eca7079982
Fix Psalm errors
2023-01-25 11:32:41 +02:00
shvlv
6227943bfb
Allow to scan private constants
2023-01-24 13:31:58 +02:00
shvlv
d6aff3ed20
Parse class constant for PhpStorm Meta override
2023-01-24 12:24:52 +02:00
Alies Lapatsin
9d54de6a51
Use a new method to display warning
2023-01-24 06:50:09 +01:00
Alies Lapatsin
0cc770c947
Use a new method to display warning
2023-01-24 06:48:03 +01:00
Alies Lapatsin
b667db20e6
Merge branch 'master' into unify-deprecation-messages
2023-01-24 06:41:43 +01:00
Mark McEver
bb2cf1f30a
Added @psalm-pure to filter_var()
2023-01-23 15:09:29 -06:00
Bruce Weirdan
e784128902
Merge pull request #9169 from lptn/fix-shepherd-output
...
Closes https://github.com/vimeo/psalm/issues/9168
2023-01-23 16:32:47 -04:00
Alies Lapatsin
68842a50c5
Use STDERR for Shepherd output, fixes #9168
2023-01-23 21:14:18 +01:00
Bruce Weirdan
f0df1192c4
Merge pull request #9164 from weirdan/do-not-allow-this-in-static-closures
...
Fixes https://github.com/vimeo/psalm/issues/9148
Fixes https://github.com/vimeo/psalm/issues/2813
2023-01-23 12:51:50 -04:00
Bruce Weirdan
a5014c5782
Merge pull request #9163 from buismaarten/patch-1
2023-01-23 05:56:37 -04:00
Bruce Weirdan
bfce3a41e4
Closures that use $this
should not be static
2023-01-23 05:47:11 -04:00
Bruce Weirdan
70f2fb7d1b
Check $this
in static closures
...
Fixes vimeo/psalm#9148
Fixes vimeo/psalm#2813
2023-01-23 05:16:12 -04:00
Maarten Buis
2065f625cb
HEAD in all caps
2023-01-23 08:42:54 +01:00
Bruce Weirdan
b63061a27f
Merge pull request #9162 from vimeo/silence-stderr-warnings-when-progress-is-suppressed
2023-01-22 21:50:35 -04:00
Bruce Weirdan
2af7f51394
Suppress warnings when --no-output
is specified
2023-01-22 20:40:21 -04:00
orklah
29b654e3e5
Merge pull request #9136 from lptn/fix-shepherd-without-custom-domain
...
Fix shepherd for default domain
2023-01-22 15:19:36 +01:00
Alies Lapatsin
73f90229bb
Merge branch 'master' into fix-shepherd-without-custom-domain
2023-01-22 13:03:40 +01:00
orklah
9725dafb7e
Merge pull request #9157 from annervisser/narrow-union-case-values
...
Narrow ->value of enum case(s) to only the possible values
2023-01-21 12:21:27 +01:00
Anner Visser
d86fcf4a85
Narrow ->value of enum case(s) to only the possible values
...
Using $stmt_var_type to determine if we're dealing with a subset of the
enum cases. If so, we only consider those cases for the possible values.
Fixes #8568
Fixes #8812
2023-01-21 12:05:24 +01:00
orklah
9e34de59cb
Merge pull request #9156 from vimeo/indent-docblocks-in-tests
...
Indent docblocks in DocComment test
2023-01-21 00:09:43 +01:00
Bruce Weirdan
bf99b76798
Indent docblocks in DocComment test
...
Since heredocs in PHP 7.3+ automatically strip leading whitespace we can
fix the formatting for this test.
2023-01-20 18:15:07 -04:00
Alies Lapatsin
ca063a46d9
Use more readable for Psalm expressions
2023-01-20 09:39:39 +01:00
Alies Lapatsin
fdd5e2ebdb
Merge branch 'master' into fix-shepherd-without-custom-domain
2023-01-20 09:28:58 +01:00
orklah
a4d1b0691d
Merge pull request #9085 from BenMorel/newInstanceArgs
...
Fix ReflectionClass::newInstanceArgs() with named parameters
2023-01-19 23:08:21 +01:00
Bruce Weirdan
d32aca3c82
Merge pull request #9141 from bitwise-operators/9132-document-pure-callables
2023-01-19 04:57:30 -04:00
Bitwise Operators
a1ad738889
docs: Add information on pure-callables to documentation (see #9132 )
2023-01-19 08:39:07 +01:00
Bruce Weirdan
5d6dff9069
Merge pull request #9139 from jack-worman/Fix_dom_import_simplexml
2023-01-19 00:01:30 -04:00
Jack Worman
787b9ae687
Fix dom_import_simplexml()
2023-01-18 18:31:54 -05:00
Alies Lapatsin
e3e1c92c07
Fix shepherd for default domain
...
When you run `psalm` like `psalm --shepherd`,
$options['shepherd'] === false
2023-01-18 21:28:01 +01:00
Alies Lapatsin
089b388c91
Unify deprecation messages
2023-01-18 21:19:30 +01:00
Alies Lapatsin
a1a2ecc957
Merge branch 'master' into unify-deprecation-messages
2023-01-18 21:14:02 +01:00
Alies Lapatsin
a28d825476
Do not display "Enabled extensions: " for empty ext list
2023-01-18 20:55:14 +01:00
Alies Lapatsin
2f385a9057
Unify deprecation messages
2023-01-18 20:54:49 +01:00
orklah
396e7fcc82
Merge pull request #9134 from lptn/better-shepherd-error-output
...
Enhance error output for shepherd
2023-01-18 20:40:59 +01:00
Alies Lapatsin
d524af8aee
Merge branch 'master' into better-shepherd-error-output
2023-01-18 20:04:16 +01:00