Лишний \ перед self при использовании namespace

Issue #80 new
xdasm-admin created an issue
<?php

namespace ns;

class cls {
    public function fn()
    {
        $t = new self();
    }
}

Выход:

<?php


namespace ns;

class cls
{
        public function fn()
        {
                $t = new \self();
        }
}

Comments (0)

  1. Log in to comment