friendship ended with social-app. php is my new best friend
1<?php
2
3/**
4 * This file is part of the Nette Framework (https://nette.org)
5 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6 */
7
8declare(strict_types=1);
9
10namespace Nette;
11
12
13/**
14 * Static class.
15 */
16trait StaticClass
17{
18 /**
19 * Class is static and cannot be instantiated.
20 */
21 private function __construct()
22 {
23 }
24
25
26 /**
27 * Call to undefined static method.
28 * @throws MemberAccessException
29 */
30 public static function __callStatic(string $name, array $args): mixed
31 {
32 Utils\ObjectHelpers::strictStaticCall(static::class, $name);
33 }
34}