Skip to content

Commit

Permalink
Updated Rector to commit 1812281273ff14f76b8b81ab5321ee4b7e656684
Browse files Browse the repository at this point in the history
rectorphp/rector-src@1812281 [Performance][Testing] Remove $nodeScopeResolver->setAnalysedFiles() on AbstractRectorTestCase (#4911)
  • Loading branch information
TomasVotruba committed Sep 4, 2023
1 parent bdf398e commit e31a8c2
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 39 deletions.
5 changes: 0 additions & 5 deletions packages/Testing/PHPUnit/AbstractRectorTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Iterator;
use RectorPrefix202309\Nette\Utils\FileSystem;
use RectorPrefix202309\Nette\Utils\Strings;
use PHPStan\Analyser\NodeScopeResolver;
use PHPUnit\Framework\ExpectationFailedException;
use Rector\Core\Application\ApplicationFileProcessor;
use Rector\Core\Autoloading\AdditionalAutoloader;
Expand Down Expand Up @@ -204,10 +203,6 @@ private function doTestFileMatchesExpectedContent(string $originalFilePath, stri
private function processFilePath(string $filePath) : string
{
$this->dynamicSourceLocatorProvider->setFilePath($filePath);
// needed for PHPStan, because the analyzed file is just created in /temp - need for trait and similar deps
/** @var NodeScopeResolver $nodeScopeResolver */
$nodeScopeResolver = $this->make(NodeScopeResolver::class);
$nodeScopeResolver->setAnalysedFiles([$filePath]);
/** @var ConfigurationFactory $configurationFactory */
$configurationFactory = $this->make(ConfigurationFactory::class);
$configuration = $configurationFactory->createForTests([$filePath]);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4a3627e63426e3c590ec21815621f6684ff41f87';
public const PACKAGE_VERSION = '1812281273ff14f76b8b81ab5321ee4b7e656684';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-04 22:44:56';
public const RELEASE_DATE = '2023-09-05 02:44:17';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit73427d818a69148d6c15f4795548a71c::getLoader();
return ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit73427d818a69148d6c15f4795548a71c
class ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit73427d818a69148d6c15f4795548a71c', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit73427d818a69148d6c15f4795548a71c', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit73427d818a69148d6c15f4795548a71c::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit73427d818a69148d6c15f4795548a71c::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit73427d818a69148d6c15f4795548a71c
class ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2611,9 +2611,9 @@ class ComposerStaticInit73427d818a69148d6c15f4795548a71c
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit73427d818a69148d6c15f4795548a71c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit73427d818a69148d6c15f4795548a71c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit73427d818a69148d6c15f4795548a71c::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$classMap;

}, null, ClassLoader::class);
}
Expand Down
32 changes: 16 additions & 16 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1744,12 +1744,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "fabb3005d16e62ebf334332a3a17fe5115fcbf3e"
"reference": "b5eea3f1586e0539aafe6f96fbd21f8c8e86c290"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/fabb3005d16e62ebf334332a3a17fe5115fcbf3e",
"reference": "fabb3005d16e62ebf334332a3a17fe5115fcbf3e",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/b5eea3f1586e0539aafe6f96fbd21f8c8e86c290",
"reference": "b5eea3f1586e0539aafe6f96fbd21f8c8e86c290",
"shasum": ""
},
"require": {
Expand All @@ -1774,7 +1774,7 @@
"tomasvotruba\/type-coverage": "^0.2",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-08-29T16:48:59+00:00",
"time": "2023-09-04T16:27:58+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down Expand Up @@ -1812,12 +1812,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "67928f6b436311dc51cc21088230803d5f4e2169"
"reference": "51a2650fc81ec757ff7832b20cacb2da5058dc5f"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/67928f6b436311dc51cc21088230803d5f4e2169",
"reference": "67928f6b436311dc51cc21088230803d5f4e2169",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/51a2650fc81ec757ff7832b20cacb2da5058dc5f",
"reference": "51a2650fc81ec757ff7832b20cacb2da5058dc5f",
"shasum": ""
},
"require": {
Expand All @@ -1844,7 +1844,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-01T17:44:36+00:00",
"time": "2023-09-04T16:29:25+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down Expand Up @@ -1882,12 +1882,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "515f9914e89e251edd636bf0635f343841f9b3ea"
"reference": "0810d7c51e4f3e17410bebd33af2cfd9b9a0b2ca"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/515f9914e89e251edd636bf0635f343841f9b3ea",
"reference": "515f9914e89e251edd636bf0635f343841f9b3ea",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/0810d7c51e4f3e17410bebd33af2cfd9b9a0b2ca",
"reference": "0810d7c51e4f3e17410bebd33af2cfd9b9a0b2ca",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -1917,7 +1917,7 @@
"tomasvotruba\/unused-public": "^0.3",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-02T19:45:08+00:00",
"time": "2023-09-04T16:28:25+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down Expand Up @@ -1958,12 +1958,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "5c30ddf3b6fb804a8b18c29355cfe8f827e12080"
"reference": "0b0b6158f30de1201e51d4f50c748b893bb6ee1b"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/5c30ddf3b6fb804a8b18c29355cfe8f827e12080",
"reference": "5c30ddf3b6fb804a8b18c29355cfe8f827e12080",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/0b0b6158f30de1201e51d4f50c748b893bb6ee1b",
"reference": "0b0b6158f30de1201e51d4f50c748b893bb6ee1b",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -1996,7 +1996,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-01T13:29:21+00:00",
"time": "2023-09-04T16:28:46+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
Loading

0 comments on commit e31a8c2

Please sign in to comment.