By geek-merlin on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
The Extension::__call() magic method is deprecated. It delegated method calls to the SplFileInfo object of the extension.
It has to be replaced with explicit calls like this.
Before:
$mtime = $extension->getMTime();
$ctime = $extension->getCTime();
After:
$mtime = $extension->getFileInfo()->getMTime();
$ctime = $extension->getFileInfo()->getCTime();
This applies as well to all other methods of SPLFileInfo.
Impacts:
Module developers