Hello,
We have developed a custom module then we encoded using ioncube, but we can't compile the code. Log shows: "PHP Fatal error: Declaration of Stacx\S3\Model\Store\Store\Interceptor::getBaseUrl($type, $secure) must be compatible with Magento\Framework\Url\ScopeInterface::getBaseUrl($type = '', $secure = NULL) in /var/www/magento/generated/code/Stacx/S3/Model/Store/Store/Interceptor.php on line 7"
Magento 2.2.3
PHP 7.1.18
Any suggestions?
Thanks!
Plz share your php file to debug your issue.
Hello Rakesh,
Line 7 is
class Interceptor extends \Amistacx\S3Rocket\Model\Store\Store implements \Magento\Framework\Interception\InterceptorInterface
Updated: After numerous tests. We don't know why magento is creating an Interceptor with the wrong function declaration. Should be created function public function getBaseUrl($type = null, $secure = null), but has been creating public function getBaseUrl($type , $secure ) instead
Thanks!
A.I