PhpMigration\Changes\v5dot3\IncompMagic::emitNonPub PHP Method

emitNonPub() protected method

protected emitNonPub ( $node )
    protected function emitNonPub($node)
    {
        /**
         * {Description}
         * The magic methods __get(), __set(), __isset(), __unset(), and
         * __call() must always be public and can no longer be static. Method
         * signatures are now enforced.
         *
         * {Errmsg}
         * Warning: The magic method {method} must have public visibility and cannot be static
         *
         * {Reference}
         * http://php.net/manual/en/migration53.incompatible.php
         */
        $message = sprintf('The magic method %s::%s() must have public visibility and cannot be static', $this->visitor->getClassName(), $node->name);
        $this->addSpot('WARNING', true, $message, $node->getLine());
    }