We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pure-callable
1 parent 837c1dd commit 965a996Copy full SHA for 965a996
2 files changed
tests/unit/TypeResolverTest.php
@@ -1165,6 +1165,14 @@ public function callableProvider(): array
1165
'callable',
1166
new Callable_(),
1167
],
1168
+ [
1169
+ 'pure-callable(int): int',
1170
+ new Callable_(
1171
+ 'pure-callable',
1172
+ [new CallableParameter(new Integer())],
1173
+ new Integer()
1174
+ ),
1175
+ ],
1176
[
1177
'callable()',
1178
tests/unit/Types/CallableTest.php
@@ -73,8 +73,12 @@ public static function provideToStringData(): array
73
74
75
'pure' => [
76
- 'pure-callable',
77
- new Callable_('pure-callable'),
78
79
80
81
82
83
'closure' => [
84
'\Closure',
0 commit comments