From 66c5de1682cce49bdea3d89bd0bd30aff15b5cbc Mon Sep 17 00:00:00 2001 From: theking2 Date: Sun, 23 Feb 2025 09:04:12 +0100 Subject: [PATCH] return type getPathInfo and getFileInfo --- src/shared/FileInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }