Skip to content

Commit b74f41f

Browse files
authored
Merge pull request #1 from magento-commerce/imported-magento-magento-coding-standard-198
[Imported] Discourage local-FS-only methods
2 parents d62e097 + 7959427 commit b74f41f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,6 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
228228
'^intval$' => '(int) construction',
229229
'^strval$' => '(string) construction',
230230
'^htmlspecialchars$' => '\Magento\Framework\Escaper->escapeHtml',
231+
'^getimagesize$' => 'getimagesizefromstring',
231232
];
232233
}

0 commit comments

Comments
 (0)