We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e0ecf2 commit 10e2dc0Copy full SHA for 10e2dc0
VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php
@@ -158,7 +158,7 @@ class VariableAnalysisSniff implements Sniff
158
*
159
* @var array<array<int|string>>
160
*/
161
- private $passByRefFunctionsCache = [];
+ private $passByRefFunctionsCache;
162
163
public function __construct()
164
{
@@ -211,7 +211,7 @@ private function getPassByReferenceFunction($functionName)
211
212
private function getPassByReferenceFunctions()
213
214
- if ($this->passByRefFunctionsCache) {
+ if (isset($this->passByRefFunctionsCache)) {
215
return $this->passByRefFunctionsCache;
216
}
217
$passByRefFunctions = Constants::getPassByReferenceFunctions();
0 commit comments