File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4603,13 +4603,16 @@ private function processArgs(
4603
4603
4604
4604
if ($ parameter instanceof ExtendedParameterReflection
4605
4605
&& $ parameter ->isPureUnlessCallableIsImpureParameter ()
4606
+ && $ parameterType !== null
4606
4607
&& $ parameterType ->isTrue ()->yes ()
4607
4608
) {
4608
- if (count ($ parameterType ->getCallableParametersAcceptors ($ scope )) > 0 ) {
4609
+ if (count ($ parameterType ->getCallableParametersAcceptors ($ scope )) > 0 && $ calleeReflection !== null ) {
4609
4610
$ parameterCallable = $ parameterType ->getCallableParametersAcceptors ($ scope )[0 ];
4610
4611
$ certain = $ parameterCallable ->isPure ()->yes ();
4611
4612
if ($ certain ) {
4612
- $ impurePoints [] = new SimpleImpurePoint (
4613
+ $ impurePoints [] = new ImpurePoint (
4614
+ $ scope ,
4615
+ $ callLike ,
4613
4616
'functionCall ' ,
4614
4617
sprintf ('call to function %s() ' , $ calleeReflection ->getName ()),
4615
4618
$ certain ,
You can’t perform that action at this time.
0 commit comments