1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
Commit Graph

12555 Commits

Author SHA1 Message Date
orklah
aec0edc618
Merge pull request #9177 from Nicelocal/duplicate_keys
Detect duplicate keys in array shapes
2023-01-25 18:37:22 +01: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
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
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
Alies Lapatsin
e6ea61c91b Enhance error output for shephed 2023-01-18 19:59:09 +01:00
orklah
a91661ac4c
Merge pull request #9133 from lptn/allow-to-specify-custom-shepherd-endpoint-clean
Allow to specify custom shepherd endpoint
2023-01-18 19:34:32 +01:00
Alies Lapatsin
2161e97c44 Cleanup baseline 2023-01-18 19:12:23 +01:00
Alies Lapatsin
cc30cf99b0 Merge remote-tracking branch 'origin/allow-to-specify-custom-shepherd-endpoint' into allow-to-specify-custom-shepherd-endpoint
# Conflicts:
#	psalm-baseline.xml
2023-01-18 19:07:42 +01:00
Alies Lapatsin
aac6ead2d9 Fix coding style issues 2023-01-18 19:06:51 +01:00
Alies Lapatsin
363a0b6b22 Add suppressions for using a deprecated property 2023-01-18 19:06:51 +01:00
Alies Lapatsin
d5e5dc0683 Fully support Psalm 5 behaviour
asked by orklah, see
https://github.com/vimeo/psalm/pull/9112#issuecomment-1383239821
2023-01-18 19:06:51 +01:00
Alies Lapatsin
291484df44 Return getCurlErrorMessage() method as it can be used outside 2023-01-18 19:06:51 +01:00
Alies Lapatsin
8e5715875a Update cli help text 2023-01-18 19:06:51 +01:00
Alies Lapatsin
587ac6e018 Fix coding style issues 2023-01-18 19:06:51 +01:00
Alies Lapatsin
c95b0718c4 Properly process HTTP response codes from shepherd servers 2023-01-18 19:06:51 +01:00
Alies Lapatsin
09517d3176 Follow redirects when submitting shepherd reports 2023-01-18 19:06:51 +01:00
Alies Lapatsin
9cba3604fc Update baseline (add DeprecatedProperty) 2023-01-18 19:06:48 +01:00
Alies Lapatsin
30ab11bae1 Use safer type operations with cli $options array 2023-01-18 19:06:32 +01:00
Alies Lapatsin
7e157cfe9d Allow to specify a custom shepherd endpoint (instead of domain) 2023-01-18 19:06:32 +01:00