diff --git a/Table.php b/Table.php index dbfec73..139433b 100755 --- a/Table.php +++ b/Table.php @@ -223,7 +223,7 @@ function __construct($align = CONSOLE_TABLE_ALIGN_LEFT, * @return Console_Table|string A Console_Table object or the generated * table. */ - function fromArray($headers, $data, $returnObject = false) + static function fromArray($headers, $data, $returnObject = false) { if (!is_array($headers) || !is_array($data)) { return false;