Skip to content

Commit 47f114d

Browse files
committed
Update mb_check_encoding fix
1 parent c427332 commit 47f114d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Magento2/Sniffs/Functions/FunctionsDeprecatedWithoutArgumentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FunctionsDeprecatedWithoutArgumentSniff implements Sniff
3636
* @var array
3737
*/
3838
private const DEPRECATED_FUNCTIONS_AND_FIXES = [
39-
'mb_check_encoding' => 'null',
39+
'mb_check_encoding' => '\'\'',
4040
'get_class' => '$this',
4141
'get_parent_class' => '$this'
4242
];

Magento2/Tests/Functions/FunctionsDeprecatedWithoutArgumentUnitTest.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FunctionsDeprecatedWithoutArgument
2020
public function testDeprecatedMethod(): array
2121
{
2222
return [
23-
mb_check_encoding(null), // Calling without argument is deprecated.
23+
mb_check_encoding(''), // Calling without argument is deprecated.
2424
mb_check_encoding('test-argument', null),
2525
get_class($this), // Calling without argument is deprecated.
2626
get_class(new FunctionsDeprecatedWithoutArgument()),

0 commit comments

Comments
 (0)