Skip to content

Commit

Permalink
Merge pull request #196 from magento-commerce/develop
Browse files Browse the repository at this point in the history
Version 26 master update
  • Loading branch information
sivaschenko authored Oct 4, 2022
2 parents b197663 + 0263b89 commit 529f519
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 382 deletions.
6 changes: 6 additions & 0 deletions Magento2/Helpers/Commenting/PHPDocFormattingValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
}
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
if ($seePtr === -1) {
if (preg_match(
"/This [a-zA-Z]* will be removed in version \d.\d.\d without replacement/",
$tokens[$deprecatedPtr + 2]['content']
)) {
return true;
}
return false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
/**
* Copyright 2021 Adobe
* Copyright 2022 Adobe
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento2\Rector\Src\AddArrayAccessInterfaceReturnTypes;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Config\RectorConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(AddArrayAccessInterfaceReturnTypes::class);
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(AddArrayAccessInterfaceReturnTypes::class);
};
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
/**
* Copyright 2021 Adobe
* Copyright 2022 Adobe
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento2\Rector\Src\ReplaceMbStrposNullLimit;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Config\RectorConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(ReplaceMbStrposNullLimit::class);
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(ReplaceMbStrposNullLimit::class);
};
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
/**
* Copyright 2021 Adobe
* Copyright 2022 Adobe
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento2\Rector\Src\ReplaceNewDateTimeNull;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Config\RectorConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(ReplaceNewDateTimeNull::class);
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(ReplaceNewDateTimeNull::class);
};
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php
/**
* Copyright 2021 Adobe
* Copyright 2022 Adobe
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento2\Rector\Src\ReplacePregSplitNullLimit;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Config\RectorConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(ReplacePregSplitNullLimit::class);
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(ReplacePregSplitNullLimit::class);
};
Loading

0 comments on commit 529f519

Please sign in to comment.