Skip to content

Commit 1476d6e

Browse files
committed
Remove noop call to finfo_close
See: https://www.php.net/manual/en/migration85.deprecated.php The finfo_close() function has been deprecated. As finfo objects are freed automatically.
1 parent 73d50fd commit 1476d6e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

webapp/src/Utils/Utils.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,6 @@ public static function getTextType(string $clientName, string $realPath): ?strin
994994

995995
[$type] = explode('; ', finfo_file($finfo, $realPath));
996996

997-
finfo_close($finfo);
998-
999997
switch ($type) {
1000998
case 'application/pdf':
1001999
$textType = 'pdf';

0 commit comments

Comments
 (0)