| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function __invoke(string $varName, array $query, InjectorInterface $injector) |
||
| 39 | { |
||
| 40 | $superGlobals = static::$globals ? static::$globals : $GLOBALS; |
||
|
|
|||
| 41 | $webContextParam = $this->webContextParam; |
||
| 42 | $phpWebContext = $superGlobals[$webContextParam::GLOBAL_KEY]; |
||
| 43 | |||
| 44 | if (isset($phpWebContext[$this->webContextParam->key])) { |
||
| 45 | return $phpWebContext[$this->webContextParam->key]; |
||
| 46 | } |
||
| 47 | |||
| 48 | return ($this->defaultParam)($varName, $query, $injector); |
||
| 49 | } |
||
| 50 | |||
| 59 |
Late static binding only has effect in subclasses. A
finalclass cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::withself::.To learn more about late static binding, please refer to the PHP core documentation.