File tree 1 file changed +3
-3
lines changed
VariableAnalysis/Sniffs/CodeAnalysis
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ class VariableAnalysisSniff implements Sniff
156
156
/**
157
157
* A cache for getPassByReferenceFunctions
158
158
*
159
- * @var array<array<int|string>>
159
+ * @var array<array<int|string>>|null
160
160
*/
161
- private $ passByRefFunctionsCache ;
161
+ private $ passByRefFunctionsCache = null ;
162
162
163
163
public function __construct ()
164
164
{
@@ -211,7 +211,7 @@ private function getPassByReferenceFunction($functionName)
211
211
*/
212
212
private function getPassByReferenceFunctions ()
213
213
{
214
- if (isset ($ this ->passByRefFunctionsCache )) {
214
+ if (! is_null ($ this ->passByRefFunctionsCache )) {
215
215
return $ this ->passByRefFunctionsCache ;
216
216
}
217
217
$ passByRefFunctions = Constants::getPassByReferenceFunctions ();
You can’t perform that action at this time.
0 commit comments