Skip to content

Commit 86e8a15

Browse files
phpstan-botclaude
andcommitted
Update AttributeReflectionTest expectations for static closures in attributes
Static closures in PHP 8.5 attributes now correctly describe as `static-Closure(...)` at precise verbosity level. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 792cece commit 86e8a15

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/PHPStan/Reflection/AttributeReflectionTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static function dataAttributeReflections(): iterable
179179
[
180180
'ClosureInAttribute\\AttrWithCallback',
181181
[
182-
'callback' => 'Closure(int): mixed',
182+
'callback' => 'static-Closure(int): mixed',
183183
],
184184
],
185185
],
@@ -190,7 +190,7 @@ public static function dataAttributeReflections(): iterable
190190
[
191191
'ClosureInAttribute\\AttrWithCallback',
192192
[
193-
'callback' => 'Closure(int): mixed',
193+
'callback' => 'static-Closure(int): mixed',
194194
],
195195
],
196196
],
@@ -201,7 +201,7 @@ public static function dataAttributeReflections(): iterable
201201
[
202202
'ClosureInAttribute\\AttrWithCallback',
203203
[
204-
'callback' => 'Closure(int): string',
204+
'callback' => 'static-Closure(int): string',
205205
],
206206
],
207207
],
@@ -215,7 +215,7 @@ public static function dataAttributeReflections(): iterable
215215
[
216216
'ClosureInAttribute\\AttrWithCallback2',
217217
[
218-
'callback' => 'Closure(mixed): mixed',
218+
'callback' => 'static-Closure(mixed): mixed',
219219
],
220220
],
221221
],
@@ -226,7 +226,7 @@ public static function dataAttributeReflections(): iterable
226226
[
227227
'ClosureInAttribute\\AttrWithCallback2',
228228
[
229-
'callback' => 'Closure(int=): mixed',
229+
'callback' => 'static-Closure(int=): mixed',
230230
],
231231
],
232232
],
@@ -237,7 +237,7 @@ public static function dataAttributeReflections(): iterable
237237
[
238238
'ClosureInAttribute\\AttrWithCallback2',
239239
[
240-
'callback' => 'Closure(int ...): mixed',
240+
'callback' => 'static-Closure(int ...): mixed',
241241
],
242242
],
243243
],

0 commit comments

Comments
 (0)