<?php
interface FileLoader
{
public static function getInstance();
public function load($file);
}
class YamlLoader implements FileLoader
{
public function __construct() {}
public function load($file)
{
return yaml_parse_file($file);
}
}
Fatal error: Class YamlLoader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (FileLoader::getInstance) in /in/HCGhb on line 9
Process exited with code 255.
Fatal error: Class YamlLoader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (FileLoader::getInstance) in /in/HCGhb on line 17
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Fatal error: Class YamlLoader contains 1 abstract methods and must therefore be declared abstract (FileLoader::getInstance) in /in/HCGhb on line 17
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/HCGhb on line 2
Process exited with code 255.