Skip to content

Commit

Permalink
AC-1723: Revert changes added for temporary ignoring Deprecations in …
Browse files Browse the repository at this point in the history
…PHP 8.1

- rollback E_DEPRECATE exclude
- update composer dependencies
  • Loading branch information
xmav committed Dec 10, 2021
1 parent 3add321 commit 40ed4ec
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 48 deletions.
2 changes: 1 addition & 1 deletion app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Environment initialization
*/
error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
if (in_array('phar', \stream_get_wrappers())) {
stream_wrapper_unregister('phar');
}
Expand Down
10 changes: 0 additions & 10 deletions app/code/Magento/Backend/Model/Menu/Filter/Iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
*/
class Iterator extends \FilterIterator
{
/**
* Constructor
*
* @param \Iterator $iterator
*/
public function __construct(\Iterator $iterator) // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod
{
parent::__construct($iterator);
}

/**
* Check whether the current element of the iterator is acceptable
*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"friendsofphp/php-cs-fixer": "~3.3.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "dev-develop",
"magento/magento2-functional-testing-framework": "^3.7",
"pdepend/pdepend": "~2.10.0",
"phpmd/phpmd": "^2.9.1",
"phpstan/phpstan": "~1.2.0",
Expand Down
58 changes: 28 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/tests/api-functional/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require_once __DIR__ . '/../../../../app/bootstrap.php';
require_once __DIR__ . '/autoload.php';

error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
$testsBaseDir = dirname(__DIR__);
$integrationTestsDir = realpath("{$testsBaseDir}/../integration");
$fixtureBaseDir = $integrationTestsDir . '/testsuite';
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/integration/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
require_once __DIR__ . '/../../../../app/bootstrap.php';
require_once __DIR__ . '/autoload.php';

error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
// phpcs:ignore Magento2.Functions.DiscouragedFunction
$testsBaseDir = dirname(__DIR__);
$fixtureBaseDir = $testsBaseDir. '/testsuite';
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/setup-integration/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//to handle different types of errors on CI
require __DIR__ . '/../../error_handler.php';

error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
$testsBaseDir = dirname(__DIR__);
$integrationTestsDir = realpath("{$testsBaseDir}/../integration");
$fixtureBaseDir = $integrationTestsDir . '/testsuite';
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/static/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Magento\Framework\View\Design\Theme\ThemePackageFactory;

require __DIR__ . '/autoload.php';
error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
if (!defined('TESTS_TEMP_DIR')) {
define('TESTS_TEMP_DIR', dirname(__DIR__) . '/tmp');
}
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/unit/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

\Magento\Framework\Phrase::setRenderer(new \Magento\Framework\Phrase\Renderer\Placeholder());

error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(E_ALL);
ini_set('display_errors', 1);

/* For data consistency between displaying (printing) and serialization a float number */
Expand Down
3 changes: 2 additions & 1 deletion lib/internal/Magento/Framework/App/RouterList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/
namespace Magento\Framework\App;

/** * Used as a container for list of routers.
/**
* Used as a container for list of routers.
*/
class RouterList implements RouterListInterface
{
Expand Down

0 comments on commit 40ed4ec

Please sign in to comment.