New contact form with friendlycaptcha
This commit is contained in:
17
vendor/nette/utils/src/StaticClass.php
vendored
17
vendor/nette/utils/src/StaticClass.php
vendored
@@ -16,22 +16,9 @@ namespace Nette;
|
||||
trait StaticClass
|
||||
{
|
||||
/**
|
||||
* @return never
|
||||
* @throws \Error
|
||||
* Class is static and cannot be instantiated.
|
||||
*/
|
||||
final public function __construct()
|
||||
private function __construct()
|
||||
{
|
||||
throw new \Error('Class ' . static::class . ' is static and cannot be instantiated.');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Call to undefined static method.
|
||||
* @return void
|
||||
* @throws MemberAccessException
|
||||
*/
|
||||
public static function __callStatic(string $name, array $args)
|
||||
{
|
||||
Utils\ObjectHelpers::strictStaticCall(static::class, $name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user