We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c595fbc commit ef8bd3fCopy full SHA for ef8bd3f
Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php
@@ -241,9 +241,9 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
241
'^date_sunrise$' => 'date_sun_info',
242
'^date_sunset$' => 'date_sun_info',
243
'^strptime$' => 'date_parse_from_format',
244
- '^strftime$' => null,
245
- '^gmstrftime$' => null,
246
- '^(mhash|mhash_.*)$' => null,
+ '^strftime$' => 'IntlDateFormatter::format',
+ '^gmstrftime$' => 'IntlDateFormatter::format',
+ '^(mhash|mhash_.*)$' => 'hash_*',
247
'^odbc_result_all$' => null
248
];
249
}
0 commit comments