1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
Commit Graph

10253 Commits

Author SHA1 Message Date
orklah
8182684941
Merge pull request #7193 from orklah/7151
allow destructuring on a possible null variable as long as there is an array alongside
2021-12-20 22:55:09 +01:00
orklah
1eca2c32ae only emit PossiblyNullArrayAccess if there was no successful destructuring 2021-12-20 22:48:27 +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
aff40ada71
Merge pull request #7186 from igitur/mysqli-nullable-parameters
MySqli: some parameters are nullable
2021-12-20 17:44:02 +01:00
Francois Botha
014e678e97 MySqli: some parameters are nullable 2021-12-20 16:00:25 +02:00
orklah
ce7bd23479
Merge pull request #7190 from orklah/7178-3
fix other occurences of getAttributes
2021-12-20 10:25:19 +01:00
orklah
c8959bd02a fix other occurences of getAttributes 2021-12-20 10:19:01 +01:00
orklah
3a2cce7df5
Merge pull request #7189 from orklah/7178-2
fix #7178 again
2021-12-20 10:09:16 +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
orklah
3df758d75f
Merge pull request #7183 from kamil-tekiela/patch-2
Removed misleading parentheses after language construct
2021-12-18 16:26:31 +01:00
Kamil Tekiela
01d64e606c
Removed misleading parentheses after language construct 2021-12-18 15:20:58 +00:00
orklah
eca1cc3976
Merge pull request #7182 from SMAtaurRahman/config-typeStats-and-strictTypes-fix
Fixed ignoreTypeStats & useStrictTypes flag value detection for directories in config
2021-12-18 15:59:13 +01: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
e9ad61e269
Merge pull request #7180 from orklah/7178
doesn't infer empty for ReflectionClass::getAttributes without params
2021-12-17 00:20:23 +01: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
orklah
e9073eb059 doesn't infer empty for ReflectionClass::getAttributes without params 2021-12-16 23:39:23 +01:00
Bruce Weirdan
f4b48ab625
Merge pull request #7175 from vimeo/muglug-fix-closure-comparison 2021-12-16 19:50:41 +02:00
Matthew Brown
89a1c5acbc Fix faulty comparison with typed closure 2021-12-16 16:39:08 +00:00
Matthew Brown
84d677738e
Add docs for TypeComparisonResult::$type_coerced_from_scalar 2021-12-16 14:05:46 +00:00
Bruce Weirdan
932be46189
Merge pull request #7168 from rarila/remove-exclude-pattern-from-phpcs 2021-12-15 23:36:10 +02:00
rarila
c0ca60f196 Remove superflous exclude pattern 2021-12-15 22:12:40 +01: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
d62bee3a9a Rename $fake_var_id to $fake_var_discriminator. 2021-12-15 11:33:27 -06:00
AndrolGenhald
03ccb9b548 Add test for nested array_map return type. 2021-12-15 11:09:10 -06:00
AndrolGenhald
04c0243547 Fix trailing comma for PHP < 8.0. 2021-12-15 11:02:24 -06:00
AndrolGenhald
00749c84fc Fix array_filter return type provider. 2021-12-15 09:58:36 -06:00
AndrolGenhald
b78a188061 Assign id to array_map fake variables to avoid conflicts and ensure removal (fixes #7164). 2021-12-15 09:12:14 -06:00
Bruce Weirdan
38a3efe69f
Merge pull request #7165 from rarila/cs-declare-namespace 2021-12-15 15:53:28 +02:00
rarila
d8dc542b9f Rule: Namespaces.AlphabeticallySortedUses.psr12Compatible = true 2021-12-15 05:11:15 +01:00
rarila
97e6511fab Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
rarila
099245281e Rule: Enforce number of lines before and after namespace. 2021-12-15 04:55:08 +01:00
rarila
9fd1721e08 Rule: Enforce formatting of namespace. 2021-12-15 04:50:26 +01:00
rarila
5785a1e4fa Rule: Requires only one namespace in a file. 2021-12-15 04:46:39 +01:00
rarila
7df7c1f070 Format declare(strict_types=1) 2021-12-15 04:42:37 +01:00
rarila
79e4a19f92 Add rules for declare(strict_types=1) 2021-12-15 04:40:34 +01:00
orklah
646ba983a0
Merge pull request #7140 from yethee/soap
Fixed compatibility with SoapClient
2021-12-15 00:55:57 +01:00
orklah
f036ebc33f
Merge pull request #7149 from villfa/patch-1
Set allow-plugins for Composer 2.2
2021-12-15 00:55:08 +01:00
orklah
bb687aebba add test 2021-12-15 00:51:59 +01:00
orklah
0c1564f4b5 allow keyed array to contain class-strings 2021-12-15 00:51:59 +01:00
orklah
2cd7b19ee3
Merge pull request #7145 from villfa/fix/ldap_set_rebind_proc
Fix ldap_set_rebind_proc signature
2021-12-15 00:49:50 +01:00
orklah
b2de778fb8
Merge pull request #7156 from simPod/set-map
Add Set::map() to ext-ds stub
2021-12-15 00:48:23 +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
Bruce Weirdan
bfc3cdd51b
Merge pull request #7153 from orklah/fix-ci 2021-12-15 00:09:01 +02:00
Bruce Weirdan
995ef928a9
Merge pull request #7162 from sj-i/use-igbinary-on-pool 2021-12-15 00:07:20 +02:00
orklah
93689c2860 add isStatic in stubs to solve the issue 2021-12-14 20:04:33 +01:00