Page MenuHomeWickedGov Phorge

MergeVariableInfoCapability.php
No OneTemporary

Size
772 B
Referenced Files
None
Subscribers
None

MergeVariableInfoCapability.php

<?php
declare(strict_types=1);
namespace Phan\PluginV3;
use Closure;
use Phan\Language\Element\Variable;
use Phan\Language\Scope;
/**
* MergeVariableInfoCapability is used when you want to update some data of a given variable that is seen across several branches.
* For instance, phan determines the union type of a variable based on the possible types found inside conditional branches.
*/
interface MergeVariableInfoCapability
{
/**
* @return Closure(Variable,Scope[],bool)
* The closure will be called with a Variable object and a list of scopes that we're merging.
* Closure Type: function(Variable $variable, array $scopes, bool $var_exists_in_all_branches) : void {...}
*/
public function getMergeVariableInfoClosure(): Closure;
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 14:13 (1 d, 2 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9c/b7/cfeab097fae11c44fbacffa889ab
Default Alt Text
MergeVariableInfoCapability.php (772 B)

Event Timeline