PhpMigration\Changes\v5dot3\IncompCallFromGlobal::emitSpot PHP Method

emitSpot() protected method

protected emitSpot ( $node )
    protected function emitSpot($node)
    {
        /**
         * {Description}
         * func_get_arg(), func_get_args() and func_num_args() can no longer be
         * called from the outermost scope of a file that has been included by
         * calling include or require from within a function in the calling
         * file.
         *
         * {Errmsg}
         * Warning:  {method} Called from the global scope - no function context
         *
         * {Reference}
         * http://php.net/manual/en/migration53.incompatible.php
         */
        $message = sprintf('%s() Called from the global scope - no function context', $node->name);
        $this->addSpot('WARNING', true, $message);
    }