Hallo,
ich habe folgende Klasse:
Wenn ich jetzt ein neues Objekt erstellen möchte:
Erhalte ich folgende Fehlermeldung:
Ist da was falsch, und wenn ja, dann was?
ich habe folgende Klasse:
PHP:
class HTML_Document //...
{
//...
public function __construct(string $docType)
{
}
//...
}
PHP:
$document = new HTML_Document('xhtml 1.0 strict');
Fatal error: Argument 1 passed to HTML_Document::__construct() must be an object of class string ...
Ist da was falsch, und wenn ja, dann was?