Fatal error: Declaration of Cached_PDF_Decorator::_construct() must be compatible with that of Canvas::_construct() in /my/path/to/cached_pdf_decorator.cls.php on line 22
relevant code in Cached_PDF_Decorator:
class Cached_PDF_Decorator extends CPDF_Adapter implements Canvas {
...
function __construct($cache_id, CPDF_Adapter $pdf) {
$this->_pdf = $pdf;
$this->_cache_id = $cache_id;
$this->_fonts = array();
$this->_current_page_id = $this->_pdf->open_object();
}
relevant code in interface Canvas:
interface Canvas {
function __construct($paper = "letter", $orientation = "portrait", DOMPDF $dompdf);
Shouldn't the parameters in Cached_PDF_Decorator's __construct match up with those in Canvas? Thanks!