-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from magento-commerce/develop
Develop to master v19
- Loading branch information
Showing
6 changed files
with
73 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Magento2/Tests/Functions/FunctionsDeprecatedWithoutArgumentUnitTest.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento2\Tests\Functions; | ||
|
||
/** | ||
* Class to test validate PHP functions usage of which without passing arguments. | ||
*/ | ||
class FunctionsDeprecatedWithoutArgument | ||
{ | ||
/** | ||
* Test deprecation function. | ||
* | ||
* @return array | ||
*/ | ||
public function testDeprecatedMethod(): array | ||
{ | ||
return [ | ||
mb_check_encoding(), // Calling without argument is deprecated. | ||
mb_check_encoding('test-argument'), | ||
get_class($this), // Calling without argument is deprecated. | ||
get_class(new FunctionsDeprecatedWithoutArgument()), | ||
get_parent_class($this), // Calling without argument is deprecated. | ||
get_parent_class(new FunctionsDeprecatedWithoutArgument()) | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,7 @@ public function getWarningList(): array | |
return [ | ||
23 => 1, | ||
25 => 1, | ||
27 => 1, | ||
29 => 1 | ||
27 => 1 | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.