function sigs incompatale with latest version (and maybe php7?)
Permalink
I installed the upgrade from the latest github versions, and I get the error
the add function is defined as:
so I changed that to
and I get the error...
so I changed add to
and I get the error...
So, how do I get around this? And how is it that this incompatibiliuty in function declarations exists in the dev code on github?
I am running php &... is this a v& issues (in that 7 is mroe strict regarding fuction arguemnts?)
Declaration of Concrete\Core\Tree\Node\Type\SearchPreset::add(Concrete\Core\Entity\Search\SavedFileSearch $search, $parent = false) should be compatible with Concrete\Core\Tree\Node\Node::add($parent = false)
the add function is defined as:
public static function add($parent = false)
so I changed that to
public static function add(Concrete\Core\Entity\Search\SavedFileSearch $search,$parent = false)
and I get the error...
Declaration of Concrete\Core\Tree\Node\Type\ExpressEntryResults::add($resultsName = '', $parent = false) should be compatible with Concrete\Core\Tree\Node\Node::add(Concrete\Core\Tree\Node\Concrete\Core\Entity\Search\SavedFileSearch $search, $parent = false)
so I changed add to
public static function add($resultsName = '',$parent = false)
and I get the error...
Declaration of Concrete\Core\Tree\Node\Type\SearchPreset::add(Concrete\Core\Entity\Search\SavedFileSearch $search, $parent = false) should be compatible with Concrete\Core\Tree\Node\Node::add($resultsName = '', $parent = false)
So, how do I get around this? And how is it that this incompatibiliuty in function declarations exists in the dev code on github?
I am running php &... is this a v& issues (in that 7 is mroe strict regarding fuction arguemnts?)