*/ public $defined_constants = []; /** * @var array */ public $global_variables = []; /** * @var ?array */ public $function_params = null; /** * @var ?\Psalm\Storage\FunctionLikeStorage */ public $function_storage = null; /** * @var ?PhpParser\Node\Name */ public $new_function_name = null; /** * @var bool */ public $allow_named_args = true; /** * @var array */ public $byref_uses = []; /** * @mutation-free */ public function hasByReferenceParameters(): bool { if (null === $this->function_params) { return false; } foreach ($this->function_params as $value) { if ($value->by_ref) { return true; } } return false; } }