Doctrine 2.9,Proxies声明错误(错误的函数原型)

I'm creating a website using : - symfony/symfony 3.4 - doctrine/common 2.9

All works fine except for some entities which heritates from PHP classes with functions with default parameters.

For instance, I got an entity Document which extends a class Uploadable, which extends the PHP File class (which extends \SplFileInfo).

When generating the proxy for Document, Doctrine generate the following :

public function getBasename($suffix)
{

    $this->__initializer__ && $this->__initializer__->__invoke($this, 'getBasename', [$suffix]);

    return parent::getBasename($suffix);
}

My IDE (and Doctrine) show this error : Declaration should be compatible with SplFileInfo->getBasename([suffix : null|string = null])

Any helps?

Thanks !

Finally, I removed the "File" extends which was not really useful in my context (ie file upload).

I used a DataTransformer instead.