File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 118
118
use PHPStan \Reflection \ParameterReflectionWithPhpDocs ;
119
119
use PHPStan \Reflection \ParametersAcceptor ;
120
120
use PHPStan \Reflection \ParametersAcceptorSelector ;
121
+ use PHPStan \Reflection \Php \PhpFunctionFromParserNodeReflection ;
121
122
use PHPStan \Reflection \Php \PhpMethodFromParserNodeReflection ;
122
123
use PHPStan \Reflection \Php \PhpMethodReflection ;
123
124
use PHPStan \Reflection \ReflectionProvider ;
@@ -443,7 +444,7 @@ private function processStmtNode(
443
444
$ phpDocParameterOutTypes ,
444
445
);
445
446
$ functionReflection = $ functionScope ->getFunction ();
446
- if (!$ functionReflection instanceof FunctionReflection ) {
447
+ if (!$ functionReflection instanceof PhpFunctionFromParserNodeReflection ) {
447
448
throw new ShouldNotHappenException ();
448
449
}
449
450
Original file line number Diff line number Diff line change 3
3
namespace PHPStan \Node ;
4
4
5
5
use PhpParser \Node ;
6
- use PHPStan \Reflection \FunctionReflection ;
6
+ use PHPStan \Reflection \Php \ PhpFunctionFromParserNodeReflection ;
7
7
8
8
/** @api */
9
9
class InFunctionNode extends Node \Stmt implements VirtualNode
10
10
{
11
11
12
12
public function __construct (
13
- private FunctionReflection $ functionReflection ,
13
+ private PhpFunctionFromParserNodeReflection $ functionReflection ,
14
14
private Node \Stmt \Function_ $ originalNode ,
15
15
)
16
16
{
17
17
parent ::__construct ($ originalNode ->getAttributes ());
18
18
}
19
19
20
- public function getFunctionReflection (): FunctionReflection
20
+ public function getFunctionReflection (): PhpFunctionFromParserNodeReflection
21
21
{
22
22
return $ this ->functionReflection ;
23
23
}
You can’t perform that action at this time.
0 commit comments