for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Dont;
use Dont\Exception\NonStaticCallableClass;
trait DontCallStatic
{
/**
* @throws NonStaticCallableClass
*/
final public static function __callStatic($name, $arguments)
throw NonStaticCallableClass::fromAttemptedStaticCall(static::class, $name);
}