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\NonCallableObject;
use Dont\Exception\TypeError;
trait DontCall
{
/**
* @throws NonCallableObject
* @throws TypeError
*/
final public function __call($name, $arguments)
throw NonCallableObject::fromAttemptedCall($this, $name);
}