Skip to content

Commit

Permalink
#102 Add alternative for php pathinfo function is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
diazwatson committed Aug 3, 2019
1 parent d2f07a9 commit 1e53f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
'^parse_str$' => null,
'^parse_url$' => null,
'^parsekit_compile_string$' => null,
'^pathinfo$' => null,
'^pathinfo$' => 'Magento\Framework\Filesystem\Io\File->getPathInfo()',
'^pcntl_.*$' => null,
'^posix_.*$' => null,
'^pfpro_.*$' => null,
Expand Down

0 comments on commit 1e53f72

Please sign in to comment.