diff --git a/src/shared/FileInfo.php b/src/shared/FileInfo.php index 39196b6f..e4e870a4 100644 --- a/src/shared/FileInfo.php +++ b/src/shared/FileInfo.php @@ -73,7 +73,7 @@ public function getLinkTarget(): string { * @throws FileInfoException */ #[\ReturnTypeWillChange] - public function getFileInfo($class_name = null): void { + public function getFileInfo($class_name = null): ?\SplFileInfo { throw new FileInfoException('getFileInfo not implemented', FileInfoException::NotImplemented); } @@ -83,7 +83,7 @@ public function getFileInfo($class_name = null): void { * @throws FileInfoException */ #[\ReturnTypeWillChange] - public function getPathInfo($class_name = null): void { + public function getPathInfo($class_name = null): ?\SplFileInfo { throw new FileInfoException('getPathInfo not implemented', FileInfoException::NotImplemented); }