Skip to content

Commit 1e53f72

Browse files
committed
#102 Add alternative for php pathinfo function is discouraged
1 parent d2f07a9 commit 1e53f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
9696
'^parse_str$' => null,
9797
'^parse_url$' => null,
9898
'^parsekit_compile_string$' => null,
99-
'^pathinfo$' => null,
99+
'^pathinfo$' => 'Magento\Framework\Filesystem\Io\File->getPathInfo()',
100100
'^pcntl_.*$' => null,
101101
'^posix_.*$' => null,
102102
'^pfpro_.*$' => null,

0 commit comments

Comments
 (0)