Skip to content

fatal Error on php 5.3.3 Centos #83

Closed
@Kwaadpepper

Description

@Kwaadpepper

PHP Fatal error: Can't inherit abstract function Sabberworm\CSS\Renderable::__toString() (previously declared abstract in Sabberworm\CSS\Value\Value) in /www/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Value.php on line 7

my code used:
$oParser = new Sabberworm\CSS\Parser($css.$template['Template']['style']);
$oCss = $oParser->parse();
foreach($oCss->getAllDeclarationBlocks() as $oBlock) {
foreach($oBlock->getSelectors() as $oSelector) {
//Loop over all selector parts (the comma-separated strings in a selector) and prepend the id
$oSelector->setSelector('form table '.$oSelector->getSelector());
}
}
$css = $oCss->render();

My code is exactly the same as the example in the wiki.

My php info
PHP 5.3.3 (cli) (built: Aug 6 2014 05:54:27)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions