I've two older extbase Extensions A and B. Ext B extends the Person Model and Controller of A and overwrites the showAction. The extended Model is named "Personcc" while the original Model was named "Person". The showAction looks like
//show action in Controller of EXT A
public function showAction(Vendor\Ext\Domain\Model\Person = $person) {
...
}
//show action of extending controller:
public function showAction(Vendor\Ext\Domain\Model\Personcc = $person) {
...
}
Now I have to update the extensions to get them work with PHP7. In PHP5 it works like this, but not in PHP 7. The error is, that the declaration "should be compatible". What can I do besides to totally rebuild Ext B? Is there a way to say PHP7: "please accept this"?
(The example code is a bit abstract, but the problem should be clear and it goes through the whole extension. Without a good idea to overcome this, I think the extension needs to be completely reworked.)