Issue Bug Closed

#29137Fatal error with E_STRICT: Declaration of fetchType must be compatible with interface

Philipp Gampe 08/21/11, 16:42 updated 12/10/13, 01:35

Description

Fatal error: Declaration of tx_linkvalidator_linktype_External::fetchType() must be compatible 
with that of tx_linkvalidator_linktype_Interface::fetchType() in 
/home/phil/t3-playground/linkvalidator/classes/linktype/class.tx_linkvalidator_linktype_external.php 
on line 192

The same happens for checkLink().

Solution, change the interface to include type hints too. Therefore, change all places, where the methods are overridden.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.