<?php declare(strict_types=1); namespace mystic\forum\utils; trait StaticClass { public function __construct() { throw new \RuntimeException("Cannot instantiate static class " . self::class); } }