Warning: count(): Parameter must be an array or an object that implements Countable in D:\xampp\htdocs\xjoeyv\vendor\vlucas\spot2\lib\Config.php on line 192
My Code
private static $slim;
private static $blade;
private static $cfg;
private static $orm;
public static function start() {
self::$slim = new Slim();
self::$cfg = new Config();
self::$blade = new BladeInstance("./views", "./cache");
try {
self::$cfg->addConnection('mysql', 'mysql://root:@localhost/xjoeyv_r');
} catch (Exception $exception) {}
self::$orm = new Locator(self::$cfg);
}```
Warning: count(): Parameter must be an array or an object that implements Countable in D:\xampp\htdocs\xjoeyv\vendor\vlucas\spot2\lib\Config.php on line 192
My Code