Open
Description
new static::$classNameA();
is detected as an error.
It reports ';' excepted
.
But new self::$classNameA();
is ok.
I think new static::$classNameA();
should not be detected as an error.
Example code:
<?php
namespace App;
class Test
{
protected static $classNameA = A::class;
protected static $classNameB = B::class;
public function a()
{
$a = new static::$classNameA();
$a->output();
}
public function b()
{
$b = new self::$classNameB();
$b->output();
}
}