1.2.489. Functioncall Is Global

Marks a functioncall when it is from the global scope. It is not located in another function, class or trait.

<?php

function foo() {
     // This is not a global functioncall
     goo();
}

// This is a global functioncall
foo();

?>

See also class.

1.2.489.1. Specs

Short name

Functions/IsGlobal

Rulesets

All

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

class

Available in

Entreprise Edition, Exakat Cloud