[TOOLS] Fix all level 0 errors found by PHPStan and move constant definition to bootstrap file

This commit is contained in:
2021-09-06 19:49:03 +01:00
parent 0eb0236feb
commit eb833b62e2
33 changed files with 312 additions and 285 deletions

View File

@@ -32,7 +32,7 @@ abstract class Bitmap
private static function _to(int $r, bool $instance)
{
$init = $r;
$class = get_called_class();
$class = static::class;
if ($instance) {
$obj = new $class;
} else {