Updated Rector to commit 3b42813953f335c8d2986c391629ce007ad06ea4

3b42813953 [Scoper] Fix scoper to fix prefixed regex on doctrine inflector take 2 (#6656)
This commit is contained in:
Tomas Votruba 2025-01-06 16:21:17 +00:00
parent 1e4b4023a5
commit 47516301bf
10 changed files with 14 additions and 14 deletions

View File

@ -93,7 +93,7 @@ final class AutoloadIncluder
require_once $filePath;
}
}
\class_alias('RectorPrefix202501\\AutoloadIncluder', 'AutoloadIncluder', \false);
\class_alias('\\AutoloadIncluder', 'AutoloadIncluder', \false);
if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) {
require_once __DIR__ . '/../preload.php';
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'c38a120d1193f8878fae85b0d96e88a1c644fd09';
public const PACKAGE_VERSION = '3b42813953f335c8d2986c391629ce007ad06ea4';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-06 16:13:37';
public const RELEASE_DATE = '2025-01-06 16:18:51';
/**
* @var int
*/

View File

@ -13,7 +13,7 @@ namespace RectorPrefix202501\Composer;
$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
if (\PHP_VERSION_ID < 80000) {
if (!\class_exists('RectorPrefix202501\\Composer\\BinProxyWrapper')) {
if (!\class_exists('\\Composer\\BinProxyWrapper')) {
/**
* @internal
*/
@ -87,7 +87,7 @@ if (\PHP_VERSION_ID < 80000) {
}
}
}
if (\function_exists('stream_get_wrappers') && \in_array('phpvfscomposer', \stream_get_wrappers(), \true) || \function_exists('stream_wrapper_register') && \stream_wrapper_register('phpvfscomposer', 'RectorPrefix202501\\Composer\\BinProxyWrapper')) {
if (\function_exists('stream_get_wrappers') && \in_array('phpvfscomposer', \stream_get_wrappers(), \true) || \function_exists('stream_wrapper_register') && \stream_wrapper_register('phpvfscomposer', '\\Composer\\BinProxyWrapper')) {
return include "phpvfscomposer://" . __DIR__ . '/..' . '/nikic/php-parser/bin/php-parse';
}
}

View File

@ -13,7 +13,7 @@ namespace RectorPrefix202501\Composer;
$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
if (\PHP_VERSION_ID < 80000) {
if (!\class_exists('RectorPrefix202501\\Composer\\BinProxyWrapper')) {
if (!\class_exists('\\Composer\\BinProxyWrapper')) {
/**
* @internal
*/
@ -87,7 +87,7 @@ if (\PHP_VERSION_ID < 80000) {
}
}
}
if (\function_exists('stream_get_wrappers') && \in_array('phpvfscomposer', \stream_get_wrappers(), \true) || \function_exists('stream_wrapper_register') && \stream_wrapper_register('phpvfscomposer', 'RectorPrefix202501\\Composer\\BinProxyWrapper')) {
if (\function_exists('stream_get_wrappers') && \in_array('phpvfscomposer', \stream_get_wrappers(), \true) || \function_exists('stream_wrapper_register') && \stream_wrapper_register('phpvfscomposer', '\\Composer\\BinProxyWrapper')) {
return include "phpvfscomposer://" . __DIR__ . '/..' . '/symfony/yaml/Resources/bin/yaml-lint';
}
}

View File

@ -53,7 +53,7 @@ class InstalledVersions
if (1 === \count($packages)) {
return $packages[0];
}
return \array_keys(\array_flip(\call_user_func_array('RectorPrefix202501\\array_merge', $packages)));
return \array_keys(\array_flip(\call_user_func_array('\\array_merge', $packages)));
}
/**
* Returns a list of all package names with a specific type e.g. 'library'
@ -277,7 +277,7 @@ class InstalledVersions
private static function getInstalled()
{
if (null === self::$canGetVendors) {
self::$canGetVendors = \method_exists('RectorPrefix202501\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
self::$canGetVendors = \method_exists('\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
}
$installed = array();
$copiedLocalDir = \false;

View File

@ -50,7 +50,7 @@ final class Query
{
$class = $this->class !== Message::CLASS_IN ? 'CLASS' . $this->class . ' ' : '';
$type = 'TYPE' . $this->type;
$ref = new \ReflectionClass('RectorPrefix202501\\React\\Dns\\Model\\Message');
$ref = new \ReflectionClass('\\React\\Dns\\Model\\Message');
foreach ($ref->getConstants() as $name => $value) {
if ($value === $this->type && \strpos($name, 'TYPE_') === 0) {
$type = \substr($name, 5);

View File

@ -37,7 +37,7 @@ final class ExtLibevLoop implements LoopInterface
private $signalEvents = array();
public function __construct()
{
if (!\class_exists('RectorPrefix202501\\libev\\EventLoop', \false)) {
if (!\class_exists('\\libev\\EventLoop', \false)) {
throw new BadMethodCallException('Cannot create ExtLibevLoop, ext-libev extension missing');
}
$this->loop = new EventLoop();

View File

@ -48,7 +48,7 @@ final class Factory
// only use ext-uv on PHP 7
return new ExtUvLoop();
}
if (\class_exists('RectorPrefix202501\\libev\\EventLoop', \false)) {
if (\class_exists('\\libev\\EventLoop', \false)) {
return new ExtLibevLoop();
}
if (\class_exists('EvLoop', \false)) {

View File

@ -2,6 +2,6 @@
namespace RectorPrefix202501;
if (!\function_exists('RectorPrefix202501\\React\\Promise\\resolve')) {
if (!\function_exists('\\React\\Promise\\resolve')) {
require __DIR__ . '/functions.php';
}

View File

@ -10,7 +10,7 @@ namespace RectorPrefix202501;
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!\function_exists('RectorPrefix202501\\trigger_deprecation')) {
if (!\function_exists('\\trigger_deprecation')) {
/**
* Triggers a silenced deprecation notice.
*