Skip to content

Commit ef8bd3f

Browse files
committed
Fixed code by recommendation
1 parent c595fbc commit ef8bd3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
241241
'^date_sunrise$' => 'date_sun_info',
242242
'^date_sunset$' => 'date_sun_info',
243243
'^strptime$' => 'date_parse_from_format',
244-
'^strftime$' => null,
245-
'^gmstrftime$' => null,
246-
'^(mhash|mhash_.*)$' => null,
244+
'^strftime$' => 'IntlDateFormatter::format',
245+
'^gmstrftime$' => 'IntlDateFormatter::format',
246+
'^(mhash|mhash_.*)$' => 'hash_*',
247247
'^odbc_result_all$' => null
248248
];
249249
}

0 commit comments

Comments
 (0)