Skip to content

Commit 480fa81

Browse files
committed
Use STDIN
1 parent 415ded5 commit 480fa81

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' => '[]',
39+
'mb_check_encoding' => 'STDIN',
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([]), // Calling without argument is deprecated.
23+
mb_check_encoding(STDIN), // Calling without argument is deprecated.
2424
mb_check_encoding('test-argument'),
2525
get_class($this), // Calling without argument is deprecated.
2626
get_class(new FunctionsDeprecatedWithoutArgument()),

0 commit comments

Comments
 (0)