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 @@ -5110,13 +5110,16 @@ private function processArgs(
5110
5110
5111
5111
if ($ parameter instanceof ExtendedParameterReflection
5112
5112
&& $ parameter ->isPureUnlessCallableIsImpureParameter ()
5113
+ && $ parameterType !== null
5113
5114
&& $ parameterType ->isTrue ()->yes ()
5114
5115
) {
5115
- if (count ($ parameterType ->getCallableParametersAcceptors ($ scope )) > 0 ) {
5116
+ if (count ($ parameterType ->getCallableParametersAcceptors ($ scope )) > 0 && $ calleeReflection !== null ) {
5116
5117
$ parameterCallable = $ parameterType ->getCallableParametersAcceptors ($ scope )[0 ];
5117
5118
$ certain = $ parameterCallable ->isPure ()->yes ();
5118
5119
if ($ certain ) {
5119
- $ impurePoints [] = new SimpleImpurePoint (
5120
+ $ impurePoints [] = new ImpurePoint (
5121
+ $ scope ,
5122
+ $ callLike ,
5120
5123
'functionCall ' ,
5121
5124
sprintf ('call to function %s() ' , $ calleeReflection ->getName ()),
5122
5125
$ certain ,
You can’t perform that action at this time.
0 commit comments