Skip to content

Commit

Permalink
Updated Rector to commit 6d0abe7b49908c66940c7b4065cd28f0d66fbf45
Browse files Browse the repository at this point in the history
rectorphp/rector-src@6d0abe7 [Autoload] Remove src/core_namespace_aliases.php (#5476)
  • Loading branch information
TomasVotruba committed Jan 17, 2024
1 parent bfa3672 commit 8d69a47
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
15 changes: 7 additions & 8 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1802,12 +1802,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "4581a9add0c22523193e696a4e615d8c4612a09b"
"reference": "284250309f1cee702b9d93f41a6a8cb17d75d84c"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/4581a9add0c22523193e696a4e615d8c4612a09b",
"reference": "4581a9add0c22523193e696a4e615d8c4612a09b",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/284250309f1cee702b9d93f41a6a8cb17d75d84c",
"reference": "284250309f1cee702b9d93f41a6a8cb17d75d84c",
"shasum": ""
},
"require": {
Expand All @@ -1818,20 +1818,19 @@
},
"require-dev": {
"phpstan\/extension-installer": "^1.3",
"phpstan\/phpstan": "^1.10.34",
"phpstan\/phpstan": "^1.10.56",
"phpstan\/phpstan-webmozart-assert": "^1.2",
"phpunit\/phpunit": "^10.5",
"rector\/phpstan-rules": "^0.7.4",
"rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^12.0",
"symplify\/easy-coding-standard": "^12.1",
"symplify\/phpstan-extensions": "^11.2",
"symplify\/phpstan-rules": "^11.4",
"symplify\/phpstan-rules": "^12.0",
"symplify\/rule-doc-generator": "^12.0",
"symplify\/vendor-patches": "^11.2",
"tomasvotruba\/class-leak": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2024-01-09T15:52:11+00:00",
"time": "2024-01-17T11:46:44+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/rector/extension-installer/src/GeneratedConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b419ce7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 51ff6e7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 4581a9a'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 6d139d7'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main b419ce7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 51ff6e7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 2842503'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 6d139d7'));
private function __construct()
{
}
Expand Down
7 changes: 3 additions & 4 deletions vendor/rector/rector-phpunit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
"require-dev": {
"rector\/rector-src": "dev-main",
"phpunit\/phpunit": "^10.5",
"phpstan\/phpstan": "^1.10.34",
"symplify\/phpstan-rules": "^11.4",
"phpstan\/phpstan": "^1.10.56",
"symplify\/phpstan-rules": "^12.0",
"symplify\/phpstan-extensions": "^11.2",
"symplify\/easy-coding-standard": "^12.0",
"symplify\/easy-coding-standard": "^12.1",
"symplify\/rule-doc-generator": "^12.0",
"rector\/phpstan-rules": "^0.7.4",
"phpstan\/extension-installer": "^1.3",
"phpstan\/phpstan-webmozart-assert": "^1.2",
"symplify\/vendor-patches": "^11.2",
Expand Down
2 changes: 1 addition & 1 deletion vendor/rector/rector-phpunit/rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'*/Fixture/*',
'*/Expected/*',
// object types
StringClassNameToClassConstantRector::class => [__DIR__ . '/src/Rector/Class_/TestListenerToHooksRector.php', __DIR__ . '/src/NodeAnalyzer/TestsNodeAnalyzer.php', __DIR__ . '/config'],
StringClassNameToClassConstantRector::class => [__DIR__ . '/src/Rector/Class_/TestListenerToHooksRector.php', __DIR__ . '/src/NodeAnalyzer/TestsNodeAnalyzer.php', __DIR__ . '/config', __DIR__ . '/src/NodeFinder/DataProviderClassMethodFinder.php'],
]);
$rectorConfig->sets([LevelSetList::UP_TO_PHP_82, SetList::DEAD_CODE, PHPUnitSetList::PHPUNIT_100, PHPUnitSetList::PHPUNIT_CODE_QUALITY, SetList::CODE_QUALITY, SetList::CODING_STYLE, SetList::EARLY_RETURN, SetList::NAMING, SetList::TYPE_DECLARATION, SetList::PRIVATIZATION]);
$rectorConfig->ruleWithConfiguration(StringClassNameToClassConstantRector::class, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use PhpParser\Node\Stmt\ClassMethod;
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
use PHPStan\Reflection\ClassReflection;
use RectorPrefix202401\PHPUnit\Framework\Attributes\DataProvider;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\PhpParser\AstResolver;
Expand Down Expand Up @@ -72,7 +71,7 @@ public function find(Class_ $class) : array
*/
public function findDataProviderNamesForClassMethod(ClassMethod $classMethod) : array
{
$dataProviderAttributes = $this->findAttributesByClass($classMethod, DataProvider::class);
$dataProviderAttributes = $this->findAttributesByClass($classMethod, 'PHPUnit\\Framework\\Attributes\\DataProvider');
if ($dataProviderAttributes !== []) {
return $this->resolveAttributeMethodNames($dataProviderAttributes);
}
Expand Down

0 comments on commit 8d69a47

Please sign in to comment.