Skip to content

Commit 7959427

Browse files
MC-38508: Add static checks for PHP FS calls
1 parent 94c155c commit 7959427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
228228
'^intval$' => '(int) construction',
229229
'^strval$' => '(string) construction',
230230
'^htmlspecialchars$' => '\Magento\Framework\Escaper->escapeHtml',
231-
'getimagesize' => 'getimagesizefromstring',
231+
'^getimagesize$' => 'getimagesizefromstring',
232232
];
233233
}

0 commit comments

Comments
 (0)