Skip to content

Commit 18fbf58

Browse files
dkarlovinicolas-grekas
authored andcommitted
[2.7] Fix issues found by PHPStan
1 parent 30f99b0 commit 18fbf58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function fileExcerpt($file, $line)
115115
{
116116
if (is_readable($file)) {
117117
if (extension_loaded('fileinfo')) {
118-
$finfo = new \Finfo();
118+
$finfo = new \finfo();
119119

120120
// Check if the file is an application/octet-stream (eg. Phar file) because highlight_file cannot parse these files
121121
if ('application/octet-stream' === $finfo->file($file, FILEINFO_MIME_TYPE)) {

0 commit comments

Comments
 (0)