better singleton instance

This commit is contained in:
2025-05-07 20:57:14 -07:00
parent 8f17e2992d
commit cc146efd2a

View File

@@ -29,7 +29,7 @@ class Site
return self::$instance;
}
private function __construct($config = [])
private function __construct(array $config)
{
if ($config == [] && file_exists(TEMPLATEPATH . "/config.php")) {
$config = include(TEMPLATEPATH . "/config.php");