diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 56eb7d55519..fa98ddb061c 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -16,11 +16,11 @@ final class VersionResolver /** * @var string */ - public const PACKAGE_VERSION = '40e09ab2810dec7659f71cfb91853a023e4dff70'; + public const PACKAGE_VERSION = '2d91dd0a11debbf3cedb0b0ccf56824c10ef255f'; /** * @var string */ - public const RELEASE_DATE = '2022-04-20 21:00:15'; + public const RELEASE_DATE = '2022-04-20 19:19:18'; /** * @var string */ diff --git a/src/Configuration/Option.php b/src/Configuration/Option.php index c4109780cbe..4135f3e28b7 100644 --- a/src/Configuration/Option.php +++ b/src/Configuration/Option.php @@ -19,6 +19,7 @@ final class Option */ public const AUTOLOAD_FILE = 'autoload-file'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::bootstrapFiles() instead * @var string */ public const BOOTSTRAP_FILES = 'bootstrap_files'; @@ -39,10 +40,12 @@ final class Option */ public const NO_PROGRESS_BAR = 'no-progress-bar'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::phpVersion() instead * @var string */ public const PHP_VERSION_FEATURES = 'php_version_features'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::importNames() instead * @var string */ public const AUTO_IMPORT_NAMES = 'auto_import_names'; @@ -51,6 +54,7 @@ final class Option */ public const IMPORT_SHORT_CLASSES = 'import_short_classes'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::symfonyContainerXml() instead * @var string */ public const SYMFONY_CONTAINER_XML_PATH_PARAMETER = 'symfony_container_xml_path'; @@ -59,18 +63,22 @@ final class Option */ public const CLEAR_CACHE = 'clear-cache'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::parallel() instead * @var string */ public const PARALLEL = 'parallel'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::paths() instead * @var string */ public const PATHS = 'paths'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::autoloadPaths() instead * @var string */ public const AUTOLOAD_PATHS = 'autoload_paths'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::skip() instead * @var string */ public const SKIP = \RectorPrefix20220420\Symplify\Skipper\ValueObject\Option::SKIP; @@ -106,6 +114,7 @@ final class Option */ public const CONFIG = 'config'; /** + * @deprecated Use @see \Rector\Config\RectorConfig::phpstanConfig() instead * @var string */ public const PHPSTAN_FOR_RECTOR_PATH = 'phpstan_for_rector_path'; diff --git a/vendor/autoload.php b/vendor/autoload.php index bb07c92ca87..323497402c5 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9::getLoader(); +return ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 2aaac74d753..5f4f5f42c7a 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9 +class ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626 { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitb4d900ca0960e14cd017d258ffc26626::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInitb4d900ca0960e14cd017d258ffc26626::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireb6b917d28b8573d48cfb6e801e2a4cc9($fileIdentifier, $file); + composerRequireb4d900ca0960e14cd017d258ffc26626($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9 * @param string $file * @return void */ -function composerRequireb6b917d28b8573d48cfb6e801e2a4cc9($fileIdentifier, $file) +function composerRequireb4d900ca0960e14cd017d258ffc26626($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 40b05faab77..35e715dcb39 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9 +class ComposerStaticInitb4d900ca0960e14cd017d258ffc26626 { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -3869,9 +3869,9 @@ class ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitb6b917d28b8573d48cfb6e801e2a4cc9::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitb4d900ca0960e14cd017d258ffc26626::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitb4d900ca0960e14cd017d258ffc26626::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitb4d900ca0960e14cd017d258ffc26626::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 8248cacd3b0..cd2c3422ed4 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -737,17 +737,17 @@ }, { "name": "nette\/neon", - "version": "v3.3.2", - "version_normalized": "3.3.2.0", + "version": "v3.3.3", + "version_normalized": "3.3.3.0", "source": { "type": "git", "url": "https:\/\/github.com\/nette\/neon.git", - "reference": "54b287d8c2cdbe577b02e28ca1713e275b05ece2" + "reference": "22e384da162fab42961d48eb06c06d3ad0c11b95" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/nette\/neon\/zipball\/54b287d8c2cdbe577b02e28ca1713e275b05ece2", - "reference": "54b287d8c2cdbe577b02e28ca1713e275b05ece2", + "url": "https:\/\/api.github.com\/repos\/nette\/neon\/zipball\/22e384da162fab42961d48eb06c06d3ad0c11b95", + "reference": "22e384da162fab42961d48eb06c06d3ad0c11b95", "shasum": "" }, "require": { @@ -759,7 +759,7 @@ "phpstan\/phpstan": "^0.12", "tracy\/tracy": "^2.7" }, - "time": "2021-11-25T15:57:41+00:00", + "time": "2022-03-10T02:04:26+00:00", "bin": [ "bin\/neon-lint" ], @@ -802,7 +802,7 @@ ], "support": { "issues": "https:\/\/github.com\/nette\/neon\/issues", - "source": "https:\/\/github.com\/nette\/neon\/tree\/v3.3.2" + "source": "https:\/\/github.com\/nette\/neon\/tree\/v3.3.3" }, "install-path": "..\/nette\/neon" }, @@ -2415,21 +2415,21 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-nette.git", - "reference": "2fc8a27a25adaf00169b85347dedd9d0efcb6e10" + "reference": "0b5a94c5611aa3130b6dc0cce4028f7ad0184923" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-nette\/zipball\/2fc8a27a25adaf00169b85347dedd9d0efcb6e10", - "reference": "2fc8a27a25adaf00169b85347dedd9d0efcb6e10", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-nette\/zipball\/0b5a94c5611aa3130b6dc0cce4028f7ad0184923", + "reference": "0b5a94c5611aa3130b6dc0cce4028f7ad0184923", "shasum": "" }, "require": { "ext-xml": "*", - "nette\/neon": "3.3.2", + "nette\/neon": "^3.3.3", "php": ">=8.1", "rector\/rector-phpunit": "^0.11.15", "symfony\/string": "^6.0", - "symplify\/vendor-patches": "^10.0" + "symplify\/vendor-patches": "^10.2" }, "conflict": { "rector\/rector": "<0.11" @@ -2443,16 +2443,16 @@ "phpstan\/phpstan-strict-rules": "^1.1", "phpstan\/phpstan-webmozart-assert": "^1.0", "phpunit\/phpunit": "^9.5", - "rector\/phpstan-rules": "^0.4.7", + "rector\/phpstan-rules": "^0.4.24", "rector\/rector-src": "dev-main", - "symplify\/easy-coding-standard": "^10.0", - "symplify\/monorepo-builder": "^10.0", - "symplify\/phpstan-extensions": "^10.0", - "symplify\/phpstan-rules": "^10.0", - "symplify\/rule-doc-generator": "^10.0", - "symplify\/vendor-patches": "^10.0" + "symplify\/easy-coding-standard": "^10.2", + "symplify\/monorepo-builder": "^10.2", + "symplify\/phpstan-extensions": "^10.2", + "symplify\/phpstan-rules": "^10.2", + "symplify\/rule-doc-generator": "^10.2", + "symplify\/vendor-patches": "^10.2" }, - "time": "2022-04-18T13:39:53+00:00", + "time": "2022-04-20T19:02:05+00:00", "default-branch": true, "type": "rector-extension", "extra": { @@ -2481,7 +2481,7 @@ ], "description": "Rector upgrades rules for Nette Framework", "support": { - "source": "https:\/\/github.com\/rectorphp\/rector-nette\/tree\/main" + "source": "https:\/\/github.com\/rectorphp\/rector-nette\/tree\/0.11.58" }, "install-path": "..\/rector\/rector-nette" }, @@ -2627,12 +2627,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-symfony.git", - "reference": "7dd7cdf3850ff4b0a7839fcf24bb4c26138044de" + "reference": "d554e4e242f165bf71c07b5ac7bff895d987ebc4" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/7dd7cdf3850ff4b0a7839fcf24bb4c26138044de", - "reference": "7dd7cdf3850ff4b0a7839fcf24bb4c26138044de", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/d554e4e242f165bf71c07b5ac7bff895d987ebc4", + "reference": "d554e4e242f165bf71c07b5ac7bff895d987ebc4", "shasum": "" }, "require": { @@ -2660,7 +2660,7 @@ "symplify\/rule-doc-generator": "^10.0", "symplify\/vendor-patches": "^10.0" }, - "time": "2022-04-20T14:22:36+00:00", + "time": "2022-04-20T19:12:09+00:00", "default-branch": true, "type": "rector-extension", "extra": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 39d00b454ca..29c5e3a5cae 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix20220420; -return array('root' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.12.x-dev'), 'reference' => \NULL, 'name' => 'rector/rector-src', 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'dev_requirement' => \false), 'cweagans/composer-patches' => array('pretty_version' => '1.7.2', 'version' => '1.7.2.0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../cweagans/composer-patches', 'aliases' => array(), 'reference' => 'e9969cfc0796e6dea9b4e52f77f18e1065212871', 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'dev_requirement' => \false), 'ergebnis/json-printer' => array('pretty_version' => '3.2.0', 'version' => '3.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../ergebnis/json-printer', 'aliases' => array(), 'reference' => '651cab2b7604a6b338d0d16749f5ea0851a68005', 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'dev_requirement' => \false), 'helmich/typo3-typoscript-parser' => array('pretty_version' => 'v2.4.1', 'version' => '2.4.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../helmich/typo3-typoscript-parser', 'aliases' => array(), 'reference' => 'b61bc9d63d42901d08885c18f6c691aa0f0c800d', 'dev_requirement' => \false), 'idiosyncratic/editorconfig' => array('pretty_version' => '0.1.3', 'version' => '0.1.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../idiosyncratic/editorconfig', 'aliases' => array(), 'reference' => '3445fa4a1e00f95630d4edc729c2effb116db19b', 'dev_requirement' => \false), 'myclabs/php-enum' => array('pretty_version' => '1.8.3', 'version' => '1.8.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../myclabs/php-enum', 'aliases' => array(), 'reference' => 'b942d263c641ddb5190929ff840c68f78713e937', 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.3.2', 'version' => '3.3.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'reference' => '54b287d8c2cdbe577b02e28ca1713e275b05ece2', 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.13.2', 'version' => '4.13.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'reference' => '210577fe3cf7badcc5814d99455df46564f3c077', 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.4.4', 'version' => '1.4.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'reference' => 'd8e9fd97ca11f2f24fc1aafbcfb1f78bce762267', 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.5.7', 'version' => '1.5.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'reference' => '7fb7e2e1e9f3d59a26a413b2d3d5e47f0edb75ac', 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '2.0.0', 'version' => '2.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'reference' => 'ef29f6d262798707a9edd554e2b82517ef3a9376', 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.8.0', 'version' => '1.8.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'reference' => '0bbbcc79589e5bfdddba68a287f1cb805581a479', 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.12.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'dc4fbb830f4defea446e233379f5d0a3f6f01d8f', 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '3f5c2673308e5b425f587884ce02efee99b2d2aa', 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'reference' => '5d945fbafe019a96498cd43ac65642132ac67159', 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'b7941717d23855e627ed2b77e69d49da9997fc53', 'dev_requirement' => \false), 'rector/rector-nette' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-nette', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '2fc8a27a25adaf00169b85347dedd9d0efcb6e10', 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '236ccc20232aa707bbf1567a9e3a3ec50e372a2a', 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'c61751fe9cf2dfbc1bd351be834018aec5a0d3fd', 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.12.x-dev'), 'reference' => \NULL, 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '7dd7cdf3850ff4b0a7839fcf24bb4c26138044de', 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'dev_requirement' => \false), 'ssch/typo3-rector' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../ssch/typo3-rector', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '7b11cdde3478a77e70f1350de64c61d7a4d2fcd4', 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/config' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'reference' => '22850bfdd2b6090568ad05dece6843c859d933b7', 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'reference' => '70dcf7b2ca2ea08ad6ebcc475f104a024fb5632e', 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'reference' => 'f74917e5665e24008ac9bc3f0947a63b42e1f895', 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'reference' => '3e8a405fcc2eaf4eadb25b5e259ad9bf90499848', 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'reference' => '6c9e4c41f2c51dfde3db298594ed9cba55dbf5ff', 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'reference' => '8661b74dbabc23223f38c9b99d3f8ade71170430', 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/polyfill-ctype' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', 'aliases' => array(), 'reference' => '30885182c981ab175d4d034db0f6f469898070ab', 'dev_requirement' => \false), 'symfony/polyfill-intl-grapheme' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-grapheme', 'aliases' => array(), 'reference' => '81b86b50cf841a64252b439e738e97f4a34e2783', 'dev_requirement' => \false), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'reference' => '8590a5f561694770bdcd3f9b5c69dde6945028e8', 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'reference' => '0abb51d2f102e00a4eefcf46ba7fec406d245825', 'dev_requirement' => \false), 'symfony/polyfill-php81' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php81', 'aliases' => array(), 'reference' => '5de4ba2d41b15f9bd0e19b2ab9674135813ec98f', 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'reference' => 'e13f6757e267d687e20ec5b26ccfcbbe511cd8f4', 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'reference' => '522144f0c4c004c80d56fa47e40e17028e2eefc2', 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/yaml' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/yaml', 'aliases' => array(), 'reference' => 'e77f3ea0b21141d771d4a5655faa54f692b34af5', 'dev_requirement' => \false), 'symplify/astral' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(), 'reference' => '9548b50b555b9db15b482530ae0f463486bb063e', 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'reference' => 'ec1cc9a9649eb1ec47eca68942fe665a6ce656e8', 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(), 'reference' => '29e4fb846636e0a3b7aae601aa1eac2f68a103c9', 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'reference' => 'bb90905c9092fef0816d52506d1ce189bce768cc', 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(), 'reference' => '6ff0dda15ab96be196c9eb29eb1db427d0e0637d', 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(), 'reference' => 'b2634f45928f07999ad2ac352de6cf4413410cc7', 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'reference' => 'dbb92724acf8bc0624bf6011617414d00e3f8540', 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'reference' => '5b4719f562bc5ac83fc8a04bc5ab76d3bfe5ed26', 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(), 'reference' => '126cd1916dce01f0fef44a3d432194d5d3ad6fe1', 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(), 'reference' => 'b2d1e8279528975a96ddeb3f5b59b1b22be15e59', 'dev_requirement' => \false), 'symplify/vendor-patches' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/vendor-patches', 'aliases' => array(), 'reference' => 'a2440e497dc38b1fe11c5c9c16778cb56bd4b9a7', 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.1', 'version' => '2.9.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'reference' => '4180b3221ff852fe10d5eab30d80be6f6ab7221e', 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.10.0', 'version' => '1.10.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25', 'dev_requirement' => \false))); +return array('root' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.12.x-dev'), 'reference' => \NULL, 'name' => 'rector/rector-src', 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'reference' => '708411c7e45ac85371a99d50f52284971494bede', 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'reference' => 'e300eb6c535192decd27a85bc72a9290f0d6b3bd', 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'dev_requirement' => \false), 'cweagans/composer-patches' => array('pretty_version' => '1.7.2', 'version' => '1.7.2.0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../cweagans/composer-patches', 'aliases' => array(), 'reference' => 'e9969cfc0796e6dea9b4e52f77f18e1065212871', 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'reference' => '8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89', 'dev_requirement' => \false), 'ergebnis/json-printer' => array('pretty_version' => '3.2.0', 'version' => '3.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../ergebnis/json-printer', 'aliases' => array(), 'reference' => '651cab2b7604a6b338d0d16749f5ea0851a68005', 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'dev_requirement' => \false), 'helmich/typo3-typoscript-parser' => array('pretty_version' => 'v2.4.1', 'version' => '2.4.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../helmich/typo3-typoscript-parser', 'aliases' => array(), 'reference' => 'b61bc9d63d42901d08885c18f6c691aa0f0c800d', 'dev_requirement' => \false), 'idiosyncratic/editorconfig' => array('pretty_version' => '0.1.3', 'version' => '0.1.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../idiosyncratic/editorconfig', 'aliases' => array(), 'reference' => '3445fa4a1e00f95630d4edc729c2effb116db19b', 'dev_requirement' => \false), 'myclabs/php-enum' => array('pretty_version' => '1.8.3', 'version' => '1.8.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../myclabs/php-enum', 'aliases' => array(), 'reference' => 'b942d263c641ddb5190929ff840c68f78713e937', 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.3.3', 'version' => '3.3.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'reference' => '22e384da162fab42961d48eb06c06d3ad0c11b95', 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.7', 'version' => '3.2.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'reference' => '0af4e3de4df9f1543534beab255ccf459e7a2c99', 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.13.2', 'version' => '4.13.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'reference' => '210577fe3cf7badcc5814d99455df46564f3c077', 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.4.4', 'version' => '1.4.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'reference' => 'd8e9fd97ca11f2f24fc1aafbcfb1f78bce762267', 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.5.7', 'version' => '1.5.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'reference' => '7fb7e2e1e9f3d59a26a413b2d3d5e47f0edb75ac', 'dev_requirement' => \false), 'phpstan/phpstan-phpunit' => array('pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-phpunit', 'aliases' => array(), 'reference' => '4a3c437c09075736285d1cabb5c75bf27ed0bc84', 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '2.0.0', 'version' => '2.0.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'reference' => 'ef29f6d262798707a9edd554e2b82517ef3a9376', 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'react/cache' => array('pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.4', 'version' => '0.6.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'reference' => 'a778f3fb828d68caf8a9ab6567fd8342a86f12fe', 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.9.0', 'version' => '1.9.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'reference' => '6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb', 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'reference' => '187fb56f46d424afb6ec4ad089269c72eec2e137', 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.9.0', 'version' => '2.9.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'reference' => '234f8fd1023c9158e2314fa9d7d0e6a83db42910', 'dev_requirement' => \false), 'react/promise-timer' => array('pretty_version' => 'v1.8.0', 'version' => '1.8.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise-timer', 'aliases' => array(), 'reference' => '0bbbcc79589e5bfdddba68a287f1cb805581a479', 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'reference' => 'f474156aaab4f09041144fa8b57c7d70aed32a1c', 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'reference' => '7a423506ee1903e89f1e08ec5f0ed430ff784ae9', 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.12.x-dev', 1 => 'dev-main')), 'rector/rector-cakephp' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-cakephp', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'dc4fbb830f4defea446e233379f5d0a3f6f01d8f', 'dev_requirement' => \false), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '3f5c2673308e5b425f587884ce02efee99b2d2aa', 'dev_requirement' => \false), 'rector/rector-generator' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-generator', 'aliases' => array(0 => '9999999-dev'), 'reference' => '5d945fbafe019a96498cd43ac65642132ac67159', 'dev_requirement' => \false), 'rector/rector-laravel' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-laravel', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'b7941717d23855e627ed2b77e69d49da9997fc53', 'dev_requirement' => \false), 'rector/rector-nette' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-nette', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '0b5a94c5611aa3130b6dc0cce4028f7ad0184923', 'dev_requirement' => \false), 'rector/rector-phpoffice' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpoffice', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '236ccc20232aa707bbf1567a9e3a3ec50e372a2a', 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'c61751fe9cf2dfbc1bd351be834018aec5a0d3fd', 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.12.x-dev'), 'reference' => \NULL, 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => 'd554e4e242f165bf71c07b5ac7bff895d987ebc4', 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '4.0.4', 'version' => '4.0.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', 'dev_requirement' => \false), 'ssch/typo3-rector' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../ssch/typo3-rector', 'aliases' => array(0 => '0.11.x-dev'), 'reference' => '7b11cdde3478a77e70f1350de64c61d7a4d2fcd4', 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/config' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'reference' => '22850bfdd2b6090568ad05dece6843c859d933b7', 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'reference' => '70dcf7b2ca2ea08ad6ebcc475f104a024fb5632e', 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'reference' => 'f74917e5665e24008ac9bc3f0947a63b42e1f895', 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'reference' => '3e8a405fcc2eaf4eadb25b5e259ad9bf90499848', 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/filesystem' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'reference' => '6c9e4c41f2c51dfde3db298594ed9cba55dbf5ff', 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'reference' => '8661b74dbabc23223f38c9b99d3f8ade71170430', 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/polyfill-ctype' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', 'aliases' => array(), 'reference' => '30885182c981ab175d4d034db0f6f469898070ab', 'dev_requirement' => \false), 'symfony/polyfill-intl-grapheme' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-grapheme', 'aliases' => array(), 'reference' => '81b86b50cf841a64252b439e738e97f4a34e2783', 'dev_requirement' => \false), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'reference' => '8590a5f561694770bdcd3f9b5c69dde6945028e8', 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'reference' => '0abb51d2f102e00a4eefcf46ba7fec406d245825', 'dev_requirement' => \false), 'symfony/polyfill-php81' => array('pretty_version' => 'v1.25.0', 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php81', 'aliases' => array(), 'reference' => '5de4ba2d41b15f9bd0e19b2ab9674135813ec98f', 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.0.7', 'version' => '6.0.7.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'reference' => 'e13f6757e267d687e20ec5b26ccfcbbe511cd8f4', 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'reference' => '522144f0c4c004c80d56fa47e40e17028e2eefc2', 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.0.1')), 'symfony/yaml' => array('pretty_version' => 'v6.0.3', 'version' => '6.0.3.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/yaml', 'aliases' => array(), 'reference' => 'e77f3ea0b21141d771d4a5655faa54f692b34af5', 'dev_requirement' => \false), 'symplify/astral' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../symplify/astral', 'aliases' => array(), 'reference' => '9548b50b555b9db15b482530ae0f463486bb063e', 'dev_requirement' => \false), 'symplify/autowire-array-parameter' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/autowire-array-parameter', 'aliases' => array(), 'reference' => 'ec1cc9a9649eb1ec47eca68942fe665a6ce656e8', 'dev_requirement' => \false), 'symplify/composer-json-manipulator' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/composer-json-manipulator', 'aliases' => array(), 'reference' => '29e4fb846636e0a3b7aae601aa1eac2f68a103c9', 'dev_requirement' => \false), 'symplify/easy-parallel' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'reference' => 'bb90905c9092fef0816d52506d1ce189bce768cc', 'dev_requirement' => \false), 'symplify/easy-testing' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'symfony-bundle', 'install_path' => __DIR__ . '/../symplify/easy-testing', 'aliases' => array(), 'reference' => '6ff0dda15ab96be196c9eb29eb1db427d0e0637d', 'dev_requirement' => \false), 'symplify/package-builder' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/package-builder', 'aliases' => array(), 'reference' => 'b2634f45928f07999ad2ac352de6cf4413410cc7', 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'reference' => 'dbb92724acf8bc0624bf6011617414d00e3f8540', 'dev_requirement' => \false), 'symplify/skipper' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/skipper', 'aliases' => array(), 'reference' => '5b4719f562bc5ac83fc8a04bc5ab76d3bfe5ed26', 'dev_requirement' => \false), 'symplify/smart-file-system' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/smart-file-system', 'aliases' => array(), 'reference' => '126cd1916dce01f0fef44a3d432194d5d3ad6fe1', 'dev_requirement' => \false), 'symplify/symplify-kernel' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/symplify-kernel', 'aliases' => array(), 'reference' => 'b2d1e8279528975a96ddeb3f5b59b1b22be15e59', 'dev_requirement' => \false), 'symplify/vendor-patches' => array('pretty_version' => '10.2.2', 'version' => '10.2.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/vendor-patches', 'aliases' => array(), 'reference' => 'a2440e497dc38b1fe11c5c9c16778cb56bd4b9a7', 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.9.1', 'version' => '2.9.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'reference' => '4180b3221ff852fe10d5eab30d80be6f6ab7221e', 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.10.0', 'version' => '1.10.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25', 'dev_requirement' => \false))); diff --git a/vendor/nette/neon/readme.md b/vendor/nette/neon/readme.md index 7dbd698eb3c..981bbdc6cde 100644 --- a/vendor/nette/neon/readme.md +++ b/vendor/nette/neon/readme.md @@ -362,7 +362,7 @@ Which is parsed in PHP as follows: ```php // PHP -new Nette\Neon\Entity(Nette\Neon\Neon::CHAIN, [ +new Nette\Neon\Entity(Nette\Neon\Neon::Chain, [ new Nette\Neon\Entity('Column', ['type' => 'int', 'nulls' => true]), new Nette\Neon\Entity('Field', ['id' => 1]), ]) diff --git a/vendor/nette/neon/src/Neon/Encoder.php b/vendor/nette/neon/src/Neon/Encoder.php index 1c1fe20c617..bb6cfeeddaf 100644 --- a/vendor/nette/neon/src/Neon/Encoder.php +++ b/vendor/nette/neon/src/Neon/Encoder.php @@ -31,7 +31,7 @@ final class Encoder { if ($val instanceof \DateTimeInterface) { return new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode($val); - } elseif ($val instanceof \RectorPrefix20220420\Nette\Neon\Entity && $val->value === \RectorPrefix20220420\Nette\Neon\Neon::CHAIN) { + } elseif ($val instanceof \RectorPrefix20220420\Nette\Neon\Entity && $val->value === \RectorPrefix20220420\Nette\Neon\Neon::Chain) { $node = new \RectorPrefix20220420\Nette\Neon\Node\EntityChainNode(); foreach ($val->attributes as $entity) { $node->chain[] = $this->valueToNode($entity); @@ -54,6 +54,7 @@ final class Encoder return new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode($val); } } + /** @return Node\ArrayItemNode[] */ private function arrayToNodes($val, bool $blockMode = \false) : array { $res = []; diff --git a/vendor/nette/neon/src/Neon/Entity.php b/vendor/nette/neon/src/Neon/Entity.php index 8d87e18492b..220f91740c3 100644 --- a/vendor/nette/neon/src/Neon/Entity.php +++ b/vendor/nette/neon/src/Neon/Entity.php @@ -14,13 +14,14 @@ final class Entity extends \stdClass { /** @var mixed */ public $value; - /** @var array */ + /** @var mixed[] */ public $attributes; public function __construct($value, array $attrs = []) { $this->value = $value; $this->attributes = $attrs; } + /** @param mixed[] $properties */ public static function __set_state(array $properties) { return new self($properties['value'], $properties['attributes']); diff --git a/vendor/nette/neon/src/Neon/Lexer.php b/vendor/nette/neon/src/Neon/Lexer.php index c0d247d415f..9577801691a 100644 --- a/vendor/nette/neon/src/Neon/Lexer.php +++ b/vendor/nette/neon/src/Neon/Lexer.php @@ -10,16 +10,16 @@ namespace RectorPrefix20220420\Nette\Neon; /** @internal */ final class Lexer { - public const PATTERNS = [ + public const Patterns = [ // strings - \RectorPrefix20220420\Nette\Neon\Token::STRING => ' + \RectorPrefix20220420\Nette\Neon\Token::String => ' \'\'\'\\n (?:(?: [^\\n] | \\n(?![\\t\\ ]*+\'\'\') )*+ \\n)?[\\t\\ ]*+\'\'\' | """\\n (?:(?: [^\\n] | \\n(?![\\t\\ ]*+""") )*+ \\n)?[\\t\\ ]*+""" | \' (?: \'\' | [^\'\\n] )*+ \' | " (?: \\\\. | [^"\\\\\\n] )*+ " ', // literal / boolean / integer / float - \RectorPrefix20220420\Nette\Neon\Token::LITERAL => ' + \RectorPrefix20220420\Nette\Neon\Token::Literal => ' (?: [^#"\',:=[\\]{}()\\n\\t\\ `-] | (? '[,:=[\\]{}()-]', + \RectorPrefix20220420\Nette\Neon\Token::Char => '[,:=[\\]{}()-]', // comment - \RectorPrefix20220420\Nette\Neon\Token::COMMENT => '\\#.*+', + \RectorPrefix20220420\Nette\Neon\Token::Comment => '\\#.*+', // new line - \RectorPrefix20220420\Nette\Neon\Token::NEWLINE => '\\n++', + \RectorPrefix20220420\Nette\Neon\Token::Newline => '\\n++', // whitespace - \RectorPrefix20220420\Nette\Neon\Token::WHITESPACE => '[\\t\\ ]++', + \RectorPrefix20220420\Nette\Neon\Token::Whitespace => '[\\t\\ ]++', ]; public function tokenize(string $input) : \RectorPrefix20220420\Nette\Neon\TokenStream { $input = \str_replace("\r", '', $input); - $pattern = '~(' . \implode(')|(', self::PATTERNS) . ')~Amixu'; + $pattern = '~(' . \implode(')|(', self::Patterns) . ')~Amixu'; $res = \preg_match_all($pattern, $input, $tokens, \PREG_SET_ORDER); if ($res === \false) { throw new \RectorPrefix20220420\Nette\Neon\Exception('Invalid UTF-8 sequence.'); } - $types = \array_keys(self::PATTERNS); + $types = \array_keys(self::Patterns); $offset = 0; foreach ($tokens as &$token) { $type = null; @@ -53,13 +53,13 @@ final class Lexer break; } elseif ($token[$i] !== '') { $type = $types[$i - 1]; - if ($type === \RectorPrefix20220420\Nette\Neon\Token::CHAR) { + if ($type === \RectorPrefix20220420\Nette\Neon\Token::Char) { $type = $token[0]; } break; } } - $token = new \RectorPrefix20220420\Nette\Neon\Token($token[0], $offset, $type); + $token = new \RectorPrefix20220420\Nette\Neon\Token($token[0], $type); $offset += \strlen($token->value); } $stream = new \RectorPrefix20220420\Nette\Neon\TokenStream($tokens); @@ -71,6 +71,6 @@ final class Lexer } public static function requiresDelimiters(string $s) : bool { - return \preg_match('~[\\x00-\\x1F]|^[+-.]?\\d|^(true|false|yes|no|on|off|null)$~Di', $s) || !\preg_match('~^' . self::PATTERNS[\RectorPrefix20220420\Nette\Neon\Token::LITERAL] . '$~Dx', $s); + return \preg_match('~[\\x00-\\x1F]|^[+-.]?\\d|^(true|false|yes|no|on|off|null)$~Di', $s) || !\preg_match('~^' . self::Patterns[\RectorPrefix20220420\Nette\Neon\Token::Literal] . '$~Dx', $s); } } diff --git a/vendor/nette/neon/src/Neon/Neon.php b/vendor/nette/neon/src/Neon/Neon.php index c1c03770f4b..28dd4539da7 100644 --- a/vendor/nette/neon/src/Neon/Neon.php +++ b/vendor/nette/neon/src/Neon/Neon.php @@ -14,7 +14,8 @@ namespace RectorPrefix20220420\Nette\Neon; final class Neon { public const BLOCK = \RectorPrefix20220420\Nette\Neon\Encoder::BLOCK; - public const CHAIN = '!!chain'; + public const Chain = '!!chain'; + public const CHAIN = self::Chain; /** * Returns value converted to NEON. */ diff --git a/vendor/nette/neon/src/Neon/Node.php b/vendor/nette/neon/src/Neon/Node.php index be251638919..171e1f02dbd 100644 --- a/vendor/nette/neon/src/Neon/Node.php +++ b/vendor/nette/neon/src/Neon/Node.php @@ -7,19 +7,25 @@ declare (strict_types=1); namespace RectorPrefix20220420\Nette\Neon; -/** @internal */ -abstract class Node +/** + * @implements \IteratorAggregate + */ +abstract class Node implements \IteratorAggregate { /** @var ?int */ - public $startPos; + public $startTokenPos; /** @var ?int */ - public $endPos; + public $endTokenPos; + /** @var ?int */ + public $startLine; + /** @var ?int */ + public $endLine; /** @return mixed */ public abstract function toValue(); public abstract function toString() : string; - /** @return self[] */ - public function getSubNodes() : array + public function &getIterator() : \Generator { - return []; + return; + yield; } } diff --git a/vendor/nette/neon/src/Neon/Node/ArrayItemNode.php b/vendor/nette/neon/src/Neon/Node/ArrayItemNode.php index 48a3eb3a703..47285daf228 100644 --- a/vendor/nette/neon/src/Neon/Node/ArrayItemNode.php +++ b/vendor/nette/neon/src/Neon/Node/ArrayItemNode.php @@ -15,11 +15,10 @@ final class ArrayItemNode extends \RectorPrefix20220420\Nette\Neon\Node public $key; /** @var Node */ public $value; - public function __construct(int $pos = null) - { - $this->startPos = $this->endPos = $pos; - } - /** @param self[] $items */ + /** + * @param self[] $items + * @return mixed[] + */ public static function itemsToArray(array $items) : array { $res = []; @@ -59,8 +58,11 @@ final class ArrayItemNode extends \RectorPrefix20220420\Nette\Neon\Node { throw new \LogicException(); } - public function getSubNodes() : array + public function &getIterator() : \Generator { - return $this->key ? [&$this->key, &$this->value] : [&$this->value]; + if ($this->key) { + (yield $this->key); + } + (yield $this->value); } } diff --git a/vendor/nette/neon/src/Neon/Node/ArrayNode.php b/vendor/nette/neon/src/Neon/Node/ArrayNode.php index a162eb789cb..0f76e50db27 100644 --- a/vendor/nette/neon/src/Neon/Node/ArrayNode.php +++ b/vendor/nette/neon/src/Neon/Node/ArrayNode.php @@ -13,16 +13,15 @@ abstract class ArrayNode extends \RectorPrefix20220420\Nette\Neon\Node { /** @var ArrayItemNode[] */ public $items = []; + /** @return mixed[] */ public function toValue() : array { return \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode::itemsToArray($this->items); } - public function getSubNodes() : array + public function &getIterator() : \Generator { - $res = []; foreach ($this->items as &$item) { - $res[] =& $item; + (yield $item); } - return $res; } } diff --git a/vendor/nette/neon/src/Neon/Node/BlockArrayNode.php b/vendor/nette/neon/src/Neon/Node/BlockArrayNode.php index 82c0b8f0a03..511c9d1f28a 100644 --- a/vendor/nette/neon/src/Neon/Node/BlockArrayNode.php +++ b/vendor/nette/neon/src/Neon/Node/BlockArrayNode.php @@ -12,10 +12,9 @@ final class BlockArrayNode extends \RectorPrefix20220420\Nette\Neon\Node\ArrayNo { /** @var string */ public $indentation; - public function __construct(string $indentation = '', int $pos = null) + public function __construct(string $indentation = '') { $this->indentation = $indentation; - $this->startPos = $this->endPos = $pos; } public function toString() : string { diff --git a/vendor/nette/neon/src/Neon/Node/EntityChainNode.php b/vendor/nette/neon/src/Neon/Node/EntityChainNode.php index 4aeeb500fd1..a026711fa7f 100644 --- a/vendor/nette/neon/src/Neon/Node/EntityChainNode.php +++ b/vendor/nette/neon/src/Neon/Node/EntityChainNode.php @@ -14,11 +14,9 @@ final class EntityChainNode extends \RectorPrefix20220420\Nette\Neon\Node { /** @var EntityNode[] */ public $chain = []; - public function __construct(array $chain = [], int $startPos = null, int $endPos = null) + public function __construct(array $chain = []) { $this->chain = $chain; - $this->startPos = $startPos; - $this->endPos = $endPos ?? $startPos; } public function toValue() : \RectorPrefix20220420\Nette\Neon\Entity { @@ -26,7 +24,7 @@ final class EntityChainNode extends \RectorPrefix20220420\Nette\Neon\Node foreach ($this->chain as $item) { $entities[] = $item->toValue(); } - return new \RectorPrefix20220420\Nette\Neon\Entity(\RectorPrefix20220420\Nette\Neon\Neon::CHAIN, $entities); + return new \RectorPrefix20220420\Nette\Neon\Entity(\RectorPrefix20220420\Nette\Neon\Neon::Chain, $entities); } public function toString() : string { @@ -34,12 +32,10 @@ final class EntityChainNode extends \RectorPrefix20220420\Nette\Neon\Node return $entity->toString(); }, $this->chain)); } - public function getSubNodes() : array + public function &getIterator() : \Generator { - $res = []; foreach ($this->chain as &$item) { - $res[] =& $item; + (yield $item); } - return $res; } } diff --git a/vendor/nette/neon/src/Neon/Node/EntityNode.php b/vendor/nette/neon/src/Neon/Node/EntityNode.php index 0261fac9719..6089cf59981 100644 --- a/vendor/nette/neon/src/Neon/Node/EntityNode.php +++ b/vendor/nette/neon/src/Neon/Node/EntityNode.php @@ -15,13 +15,11 @@ final class EntityNode extends \RectorPrefix20220420\Nette\Neon\Node /** @var Node */ public $value; /** @var ArrayItemNode[] */ - public $attributes = []; - public function __construct(\RectorPrefix20220420\Nette\Neon\Node $value, array $attributes, int $startPos = null, int $endPos = null) + public $attributes; + public function __construct(\RectorPrefix20220420\Nette\Neon\Node $value, array $attributes = []) { $this->value = $value; $this->attributes = $attributes; - $this->startPos = $startPos; - $this->endPos = $endPos ?? $startPos; } public function toValue() : \RectorPrefix20220420\Nette\Neon\Entity { @@ -31,12 +29,11 @@ final class EntityNode extends \RectorPrefix20220420\Nette\Neon\Node { return $this->value->toString() . '(' . ($this->attributes ? \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode::itemsToInlineString($this->attributes) : '') . ')'; } - public function getSubNodes() : array + public function &getIterator() : \Generator { - $res = [&$this->value]; + (yield $this->value); foreach ($this->attributes as &$item) { - $res[] =& $item; + (yield $item); } - return $res; } } diff --git a/vendor/nette/neon/src/Neon/Node/InlineArrayNode.php b/vendor/nette/neon/src/Neon/Node/InlineArrayNode.php index 03f5b5126eb..8e912d1f20d 100644 --- a/vendor/nette/neon/src/Neon/Node/InlineArrayNode.php +++ b/vendor/nette/neon/src/Neon/Node/InlineArrayNode.php @@ -12,10 +12,9 @@ final class InlineArrayNode extends \RectorPrefix20220420\Nette\Neon\Node\ArrayN { /** @var string */ public $bracket; - public function __construct(string $bracket, int $pos = null) + public function __construct(string $bracket) { $this->bracket = $bracket; - $this->startPos = $this->endPos = $pos; } public function toString() : string { diff --git a/vendor/nette/neon/src/Neon/Node/LiteralNode.php b/vendor/nette/neon/src/Neon/Node/LiteralNode.php index 594fea937e9..0cd40038274 100644 --- a/vendor/nette/neon/src/Neon/Node/LiteralNode.php +++ b/vendor/nette/neon/src/Neon/Node/LiteralNode.php @@ -11,18 +11,17 @@ use RectorPrefix20220420\Nette\Neon\Node; /** @internal */ final class LiteralNode extends \RectorPrefix20220420\Nette\Neon\Node { - private const SIMPLE_TYPES = ['true' => \true, 'True' => \true, 'TRUE' => \true, 'yes' => \true, 'Yes' => \true, 'YES' => \true, 'on' => \true, 'On' => \true, 'ON' => \true, 'false' => \false, 'False' => \false, 'FALSE' => \false, 'no' => \false, 'No' => \false, 'NO' => \false, 'off' => \false, 'Off' => \false, 'OFF' => \false, 'null' => null, 'Null' => null, 'NULL' => null]; - private const DEPRECATED_TYPES = ['on' => 1, 'On' => 1, 'ON' => 1, 'off' => 1, 'Off' => 1, 'OFF' => 1]; - private const PATTERN_DATETIME = '#\\d\\d\\d\\d-\\d\\d?-\\d\\d?(?:(?:[Tt]| ++)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*+)? *+(?:Z|[-+]\\d\\d?(?::?\\d\\d)?)?)?$#DA'; - private const PATTERN_HEX = '#0x[0-9a-fA-F]++$#DA'; - private const PATTERN_OCTAL = '#0o[0-7]++$#DA'; - private const PATTERN_BINARY = '#0b[0-1]++$#DA'; + private const SimpleTypes = ['true' => \true, 'True' => \true, 'TRUE' => \true, 'yes' => \true, 'Yes' => \true, 'YES' => \true, 'on' => \true, 'On' => \true, 'ON' => \true, 'false' => \false, 'False' => \false, 'FALSE' => \false, 'no' => \false, 'No' => \false, 'NO' => \false, 'off' => \false, 'Off' => \false, 'OFF' => \false, 'null' => null, 'Null' => null, 'NULL' => null]; + private const DeprecatedTypes = ['on' => 1, 'On' => 1, 'ON' => 1, 'off' => 1, 'Off' => 1, 'OFF' => 1]; + private const PatternDatetime = '#\\d\\d\\d\\d-\\d\\d?-\\d\\d?(?:(?:[Tt]| ++)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*+)? *+(?:Z|[-+]\\d\\d?(?::?\\d\\d)?)?)?$#DA'; + private const PatternHex = '#0x[0-9a-fA-F]++$#DA'; + private const PatternOctal = '#0o[0-7]++$#DA'; + private const PatternBinary = '#0b[0-1]++$#DA'; /** @var mixed */ public $value; - public function __construct($value, int $pos = null) + public function __construct($value) { $this->value = $value; - $this->startPos = $this->endPos = $pos; } public function toValue() { @@ -31,20 +30,20 @@ final class LiteralNode extends \RectorPrefix20220420\Nette\Neon\Node /** @return mixed */ public static function parse(string $value, bool $isKey = \false) { - if (!$isKey && \array_key_exists($value, self::SIMPLE_TYPES)) { - if (isset(self::DEPRECATED_TYPES[$value])) { + if (!$isKey && \array_key_exists($value, self::SimpleTypes)) { + if (isset(self::DeprecatedTypes[$value])) { \trigger_error("Neon: keyword '{$value}' is deprecated, use true/yes or false/no.", \E_USER_DEPRECATED); } - return self::SIMPLE_TYPES[$value]; + return self::SimpleTypes[$value]; } elseif (\is_numeric($value)) { return $value * 1; - } elseif (\preg_match(self::PATTERN_HEX, $value)) { + } elseif (\preg_match(self::PatternHex, $value)) { return \hexdec($value); - } elseif (\preg_match(self::PATTERN_OCTAL, $value)) { + } elseif (\preg_match(self::PatternOctal, $value)) { return \octdec($value); - } elseif (\preg_match(self::PATTERN_BINARY, $value)) { + } elseif (\preg_match(self::PatternBinary, $value)) { return \bindec($value); - } elseif (!$isKey && \preg_match(self::PATTERN_DATETIME, $value)) { + } elseif (!$isKey && \preg_match(self::PatternDatetime, $value)) { return new \DateTimeImmutable($value); } else { return $value; diff --git a/vendor/nette/neon/src/Neon/Node/StringNode.php b/vendor/nette/neon/src/Neon/Node/StringNode.php index 833eff8095f..4dcc8adf137 100644 --- a/vendor/nette/neon/src/Neon/Node/StringNode.php +++ b/vendor/nette/neon/src/Neon/Node/StringNode.php @@ -12,13 +12,12 @@ use RectorPrefix20220420\Nette\Neon\Node; /** @internal */ final class StringNode extends \RectorPrefix20220420\Nette\Neon\Node { - private const ESCAPE_SEQUENCES = ['t' => "\t", 'n' => "\n", 'r' => "\r", 'f' => "\f", 'b' => "\10", '"' => '"', '\\' => '\\', '/' => '/', '_' => " "]; + private const EscapeSequences = ['t' => "\t", 'n' => "\n", 'r' => "\r", 'f' => "\f", 'b' => "\10", '"' => '"', '\\' => '\\', '/' => '/', '_' => " "]; /** @var string */ public $value; - public function __construct(string $value, int $pos = null) + public function __construct(string $value) { $this->value = $value; - $this->startPos = $this->endPos = $pos; } public function toValue() : string { @@ -42,8 +41,8 @@ final class StringNode extends \RectorPrefix20220420\Nette\Neon\Node } return \preg_replace_callback('#\\\\(?:ud[89ab][0-9a-f]{2}\\\\ud[c-f][0-9a-f]{2}|u[0-9a-f]{4}|x[0-9a-f]{2}|.)#i', function (array $m) : string { $sq = $m[0]; - if (isset(self::ESCAPE_SEQUENCES[$sq[1]])) { - return self::ESCAPE_SEQUENCES[$sq[1]]; + if (isset(self::EscapeSequences[$sq[1]])) { + return self::EscapeSequences[$sq[1]]; } elseif ($sq[1] === 'u' && \strlen($sq) >= 6) { if (($res = \json_decode('"' . $sq . '"')) !== null) { return $res; @@ -59,16 +58,20 @@ final class StringNode extends \RectorPrefix20220420\Nette\Neon\Node } public function toString() : string { - $res = \json_encode($this->value, \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES); - if ($res === \false) { - throw new \RectorPrefix20220420\Nette\Neon\Exception('Invalid UTF-8 sequence: ' . $this->value); + if (\strpos($this->value, "\n") === \false) { + return "'" . \str_replace("'", "''", $this->value) . "'"; + } elseif (\preg_match('~\\n[\\t ]+\'{3}~', $this->value)) { + $s = \json_encode($this->value, \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES); + $s = \preg_replace_callback('#[^\\\\]|\\\\(.)#s', function ($m) { + return ['n' => "\n", 't' => "\t", '"' => '"'][$m[1] ?? ''] ?? $m[0]; + }, \substr($s, 1, -1)); + $s = \str_replace('"""', '""\\"', $s); + $delim = '"""'; + } else { + $s = $this->value; + $delim = "'''"; } - if (\strpos($this->value, "\n") !== \false) { - $res = \preg_replace_callback('#[^\\\\]|\\\\(.)#s', function ($m) { - return ['n' => "\n\t", 't' => "\t", '"' => '"'][$m[1] ?? ''] ?? $m[0]; - }, $res); - $res = '"""' . "\n\t" . \substr($res, 1, -1) . "\n" . '"""'; - } - return $res; + $s = \preg_replace('#^(?=.)#m', "\t", $s); + return $delim . "\n" . $s . "\n" . $delim; } } diff --git a/vendor/nette/neon/src/Neon/Parser.php b/vendor/nette/neon/src/Neon/Parser.php index 989f76d39c9..78f987c0921 100644 --- a/vendor/nette/neon/src/Neon/Parser.php +++ b/vendor/nette/neon/src/Neon/Parser.php @@ -12,13 +12,16 @@ final class Parser { /** @var TokenStream */ private $tokens; + /** @var int[] */ + private $posToLine = []; public function parse(\RectorPrefix20220420\Nette\Neon\TokenStream $tokens) : \RectorPrefix20220420\Nette\Neon\Node { $this->tokens = $tokens; - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + $this->initLines(); + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } $node = $this->parseBlock($this->tokens->getIndentation()); - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } if ($this->tokens->isNext()) { $this->tokens->error(); @@ -27,14 +30,16 @@ final class Parser } private function parseBlock(string $indent, bool $onlyBullets = \false) : \RectorPrefix20220420\Nette\Neon\Node { - $res = new \RectorPrefix20220420\Nette\Neon\Node\BlockArrayNode($indent, $this->tokens->getPos()); + $res = new \RectorPrefix20220420\Nette\Neon\Node\BlockArrayNode($indent); + $this->injectPos($res); $keyCheck = []; loop: - $item = new \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode($this->tokens->getPos()); + $item = new \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode(); + $this->injectPos($item); if ($this->tokens->consume('-')) { // continue } elseif (!$this->tokens->isNext() || $onlyBullets) { - return $res->items ? $res : new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null, $this->tokens->getPos()); + return $res->items ? $res : $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null)); } else { $value = $this->parseValue(); if ($this->tokens->consume(':', '=')) { @@ -48,9 +53,10 @@ final class Parser } } $res->items[] = $item; - $item->value = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null, $this->tokens->getPos()); - if ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + $item->value = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null); + $this->injectPos($item->value); + if ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } $nextIndent = $this->tokens->getIndentation(); if (\strncmp($nextIndent, $indent, \min(\strlen($nextIndent), \strlen($indent)))) { @@ -70,15 +76,16 @@ final class Parser // open new block after dash } elseif ($this->tokens->isNext()) { $item->value = $this->parseValue(); - if ($this->tokens->isNext() && !$this->tokens->isNext(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + if ($this->tokens->isNext() && !$this->tokens->isNext(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { $this->tokens->error(); } } if ($item->value instanceof \RectorPrefix20220420\Nette\Neon\Node\BlockArrayNode) { $item->value->indentation = \substr($item->value->indentation, \strlen($indent)); } - $res->endPos = $item->endPos = $item->value->endPos; - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + $this->injectPos($res, $res->startTokenPos, $item->value->endTokenPos); + $this->injectPos($item, $item->startTokenPos, $item->value->endTokenPos); + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } if (!$this->tokens->isNext()) { return $res; @@ -96,15 +103,17 @@ final class Parser } private function parseValue() : \RectorPrefix20220420\Nette\Neon\Node { - if ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::STRING)) { + if ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::String)) { try { - $node = new \RectorPrefix20220420\Nette\Neon\Node\StringNode(\RectorPrefix20220420\Nette\Neon\Node\StringNode::parse($token->value), $this->tokens->getPos() - 1); + $node = new \RectorPrefix20220420\Nette\Neon\Node\StringNode(\RectorPrefix20220420\Nette\Neon\Node\StringNode::parse($token->value)); + $this->injectPos($node, $this->tokens->getPos() - 1); } catch (\RectorPrefix20220420\Nette\Neon\Exception $e) { $this->tokens->error($e->getMessage(), $this->tokens->getPos() - 1); } - } elseif ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::LITERAL)) { + } elseif ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Literal)) { $pos = $this->tokens->getPos() - 1; - $node = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(\RectorPrefix20220420\Nette\Neon\Node\LiteralNode::parse($token->value, $this->tokens->isNext(':', '=')), $pos); + $node = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(\RectorPrefix20220420\Nette\Neon\Node\LiteralNode::parse($token->value, $this->tokens->isNext(':', '='))); + $this->injectPos($node, $pos); } elseif ($this->tokens->isNext('[', '(', '{')) { $node = $this->parseBraces(); } else { @@ -118,61 +127,83 @@ final class Parser return $node; } $attributes = $this->parseBraces(); - $entities[] = new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($node, $attributes->items, $node->startPos, $attributes->endPos); - while ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::LITERAL)) { - $valueNode = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(\RectorPrefix20220420\Nette\Neon\Node\LiteralNode::parse($token->value), $this->tokens->getPos() - 1); + $entities[] = $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($node, $attributes->items), $node->startTokenPos, $attributes->endTokenPos); + while ($token = $this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Literal)) { + $valueNode = new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(\RectorPrefix20220420\Nette\Neon\Node\LiteralNode::parse($token->value)); + $this->injectPos($valueNode, $this->tokens->getPos() - 1); if ($this->tokens->isNext('(')) { $attributes = $this->parseBraces(); - $entities[] = new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($valueNode, $attributes->items, $valueNode->startPos, $attributes->endPos); + $entities[] = $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($valueNode, $attributes->items), $valueNode->startTokenPos, $attributes->endTokenPos); } else { - $entities[] = new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($valueNode, [], $valueNode->startPos); + $entities[] = $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\EntityNode($valueNode), $valueNode->startTokenPos); break; } } - return \count($entities) === 1 ? $entities[0] : new \RectorPrefix20220420\Nette\Neon\Node\EntityChainNode($entities, $node->startPos, \end($entities)->endPos); + return \count($entities) === 1 ? $entities[0] : $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\EntityChainNode($entities), $node->startTokenPos, \end($entities)->endTokenPos); } private function parseBraces() : \RectorPrefix20220420\Nette\Neon\Node\InlineArrayNode { $token = $this->tokens->consume(); $endBrace = ['[' => ']', '{' => '}', '(' => ')'][$token->value]; - $res = new \RectorPrefix20220420\Nette\Neon\Node\InlineArrayNode($token->value, $this->tokens->getPos() - 1); + $res = new \RectorPrefix20220420\Nette\Neon\Node\InlineArrayNode($token->value); + $this->injectPos($res, $this->tokens->getPos() - 1); $keyCheck = []; loop: - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } if ($this->tokens->consume($endBrace)) { - $res->endPos = $this->tokens->getPos() - 1; + $this->injectPos($res, $res->startTokenPos, $this->tokens->getPos() - 1); return $res; } - $res->items[] = $item = new \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode($this->tokens->getPos()); + $res->items[] = $item = new \RectorPrefix20220420\Nette\Neon\Node\ArrayItemNode(); + $this->injectPos($item, $this->tokens->getPos()); $value = $this->parseValue(); if ($this->tokens->consume(':', '=')) { $this->checkArrayKey($value, $keyCheck); $item->key = $value; - $item->value = $this->tokens->isNext(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE, ',', $endBrace) ? new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null, $this->tokens->getPos()) : $this->parseValue(); + $item->value = $this->tokens->isNext(\RectorPrefix20220420\Nette\Neon\Token::Newline, ',', $endBrace) ? $this->injectPos(new \RectorPrefix20220420\Nette\Neon\Node\LiteralNode(null), $this->tokens->getPos()) : $this->parseValue(); } else { $item->value = $value; } - $item->endPos = $item->value->endPos; - if ($this->tokens->consume(',', \RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + $this->injectPos($item, $item->startTokenPos, $item->value->endTokenPos); + if ($this->tokens->consume(',', \RectorPrefix20220420\Nette\Neon\Token::Newline)) { goto loop; } - while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::NEWLINE)) { + while ($this->tokens->consume(\RectorPrefix20220420\Nette\Neon\Token::Newline)) { } if (!$this->tokens->isNext($endBrace)) { $this->tokens->error(); } goto loop; } + /** @param true[] $arr */ private function checkArrayKey(\RectorPrefix20220420\Nette\Neon\Node $key, array &$arr) : void { if (!$key instanceof \RectorPrefix20220420\Nette\Neon\Node\StringNode && !$key instanceof \RectorPrefix20220420\Nette\Neon\Node\LiteralNode || !\is_scalar($key->value)) { - $this->tokens->error('Unacceptable key', $key->startPos); + $this->tokens->error('Unacceptable key', $key->startTokenPos); } $k = (string) $key->value; if (\array_key_exists($k, $arr)) { - $this->tokens->error("Duplicated key '{$k}'", $key->startPos); + $this->tokens->error("Duplicated key '{$k}'", $key->startTokenPos); } $arr[$k] = \true; } + private function injectPos(\RectorPrefix20220420\Nette\Neon\Node $node, int $start = null, int $end = null) : \RectorPrefix20220420\Nette\Neon\Node + { + $node->startTokenPos = $start ?? $this->tokens->getPos(); + $node->startLine = $this->posToLine[$node->startTokenPos]; + $node->endTokenPos = $end ?? $node->startTokenPos; + $node->endLine = $this->posToLine[$node->endTokenPos + 1] ?? \end($this->posToLine); + return $node; + } + private function initLines() : void + { + $this->posToLine = []; + $line = 1; + foreach ($this->tokens->getTokens() as $token) { + $this->posToLine[] = $line; + $line += \substr_count($token->value, "\n"); + } + $this->posToLine[] = $line; + } } diff --git a/vendor/nette/neon/src/Neon/Token.php b/vendor/nette/neon/src/Neon/Token.php index 8529797bdc4..b69915c48cb 100644 --- a/vendor/nette/neon/src/Neon/Token.php +++ b/vendor/nette/neon/src/Neon/Token.php @@ -10,22 +10,19 @@ namespace RectorPrefix20220420\Nette\Neon; /** @internal */ final class Token { - public const STRING = 1; - public const LITERAL = 2; - public const CHAR = 0; - public const COMMENT = 3; - public const NEWLINE = 4; - public const WHITESPACE = 5; + public const String = 1; + public const Literal = 2; + public const Char = 0; + public const Comment = 3; + public const Newline = 4; + public const Whitespace = 5; /** @var string */ public $value; - /** @var int */ - public $offset; /** @var int|string */ public $type; - public function __construct(string $value, int $offset, $type) + public function __construct(string $value, $type) { $this->value = $value; - $this->offset = $offset; $this->type = $type; } } diff --git a/vendor/nette/neon/src/Neon/TokenStream.php b/vendor/nette/neon/src/Neon/TokenStream.php index 9994bb63ba2..3037260e9ed 100644 --- a/vendor/nette/neon/src/Neon/TokenStream.php +++ b/vendor/nette/neon/src/Neon/TokenStream.php @@ -29,7 +29,7 @@ final class TokenStream } public function isNext(...$types) : bool { - while (\in_array($this->tokens[$this->pos]->type ?? null, [\RectorPrefix20220420\Nette\Neon\Token::COMMENT, \RectorPrefix20220420\Nette\Neon\Token::WHITESPACE], \true)) { + while (\in_array($this->tokens[$this->pos]->type ?? null, [\RectorPrefix20220420\Nette\Neon\Token::Comment, \RectorPrefix20220420\Nette\Neon\Token::Whitespace], \true)) { $this->pos++; } return $types ? \in_array($this->tokens[$this->pos]->type ?? null, $types, \true) : isset($this->tokens[$this->pos]); @@ -40,10 +40,10 @@ final class TokenStream } public function getIndentation() : string { - return \in_array($this->tokens[$this->pos - 2]->type ?? null, [\RectorPrefix20220420\Nette\Neon\Token::NEWLINE, null], \true) && ($this->tokens[$this->pos - 1]->type ?? null) === \RectorPrefix20220420\Nette\Neon\Token::WHITESPACE ? $this->tokens[$this->pos - 1]->value : ''; + return \in_array($this->tokens[$this->pos - 2]->type ?? null, [\RectorPrefix20220420\Nette\Neon\Token::Newline, null], \true) && ($this->tokens[$this->pos - 1]->type ?? null) === \RectorPrefix20220420\Nette\Neon\Token::Whitespace ? $this->tokens[$this->pos - 1]->value : ''; } /** @return never */ - public function error(string $message = null, int $pos = null) : void + public function error(?string $message = null, ?int $pos = null) : void { $pos = $pos ?? $this->pos; $input = ''; diff --git a/vendor/nette/neon/src/Neon/Traverser.php b/vendor/nette/neon/src/Neon/Traverser.php index 918bfa4469f..2356a2c2741 100644 --- a/vendor/nette/neon/src/Neon/Traverser.php +++ b/vendor/nette/neon/src/Neon/Traverser.php @@ -10,19 +10,54 @@ namespace RectorPrefix20220420\Nette\Neon; /** @internal */ final class Traverser { - /** @var callable(Node): ?Node */ - private $callback; - /** @param callable(Node): ?Node $callback */ - public function traverse(\RectorPrefix20220420\Nette\Neon\Node $node, callable $callback) : \RectorPrefix20220420\Nette\Neon\Node + public const DontTraverseChildren = 1; + public const StopTraversal = 2; + /** @var callable(Node): (Node|int|null)|null */ + private $enter; + /** @var callable(Node): (Node|int|null)|null */ + private $leave; + /** @var bool */ + private $stop; + /** + * @param callable(Node): (Node|int|null)|null $enter + * @param callable(Node): (Node|int|null)|null $leave + */ + public function traverse(\RectorPrefix20220420\Nette\Neon\Node $node, ?callable $enter = null, ?callable $leave = null) : \RectorPrefix20220420\Nette\Neon\Node { - $this->callback = $callback; + $this->enter = $enter; + $this->leave = $leave; + $this->stop = \false; return $this->traverseNode($node); } private function traverseNode(\RectorPrefix20220420\Nette\Neon\Node $node) : \RectorPrefix20220420\Nette\Neon\Node { - $node = ($this->callback)($node) ?? $node; - foreach ($node->getSubNodes() as &$subnode) { - $subnode = $this->traverseNode($subnode); + $children = \true; + if ($this->enter) { + $res = ($this->enter)($node); + if ($res instanceof \RectorPrefix20220420\Nette\Neon\Node) { + $node = $res; + } elseif ($res === self::DontTraverseChildren) { + $children = \false; + } elseif ($res === self::StopTraversal) { + $this->stop = \true; + $children = \false; + } + } + if ($children) { + foreach ($node as &$subnode) { + $subnode = $this->traverseNode($subnode); + if ($this->stop) { + break; + } + } + } + if (!$this->stop && $this->leave) { + $res = ($this->leave)($node); + if ($res instanceof \RectorPrefix20220420\Nette\Neon\Node) { + $node = $res; + } elseif ($res === self::StopTraversal) { + $this->stop = \true; + } } return $node; } diff --git a/vendor/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php index b05ab7ce145..77505c62df5 100644 --- a/vendor/rector/extension-installer/src/GeneratedConfig.php +++ b/vendor/rector/extension-installer/src/GeneratedConfig.php @@ -9,7 +9,7 @@ namespace Rector\RectorInstaller; */ final class GeneratedConfig { - public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dc4fbb8'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f5c267'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5d945fb'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b794171'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2fc8a27'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 236ccc2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c61751f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7dd7cdf'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7b11cdd')); + public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dc4fbb8'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f5c267'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5d945fb'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b794171'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0b5a94c'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 236ccc2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c61751f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main d554e4e'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7b11cdd')); private function __construct() { } diff --git a/vendor/rector/rector-nette/composer.json b/vendor/rector/rector-nette/composer.json index 326bfefba53..87e5de9ddeb 100644 --- a/vendor/rector/rector-nette/composer.json +++ b/vendor/rector/rector-nette/composer.json @@ -6,28 +6,28 @@ "require": { "php": ">=8.1", "ext-xml": "*", - "nette\/neon": "3.3.2", + "nette\/neon": "^3.3.3", "rector\/rector-phpunit": "^0.11.15", - "symplify\/vendor-patches": "^10.0", + "symplify\/vendor-patches": "^10.2", "symfony\/string": "^6.0" }, "require-dev": { "rector\/rector-src": "dev-main", "phpunit\/phpunit": "^9.5", - "symplify\/phpstan-extensions": "^10.0", - "symplify\/phpstan-rules": "^10.0", - "symplify\/easy-coding-standard": "^10.0", - "symplify\/monorepo-builder": "^10.0", + "symplify\/phpstan-extensions": "^10.2", + "symplify\/phpstan-rules": "^10.2", + "symplify\/easy-coding-standard": "^10.2", + "symplify\/monorepo-builder": "^10.2", "phpstan\/phpstan-nette": "^1.0", "nette\/application": "^3.1", "nette\/di": "^3.0", "nette\/forms": "3.0.*", - "symplify\/rule-doc-generator": "^10.0", + "symplify\/rule-doc-generator": "^10.2", "phpstan\/extension-installer": "^1.1", - "rector\/phpstan-rules": "^0.4.7", + "rector\/phpstan-rules": "^0.4.24", "phpstan\/phpstan-webmozart-assert": "^1.0", "phpstan\/phpstan-strict-rules": "^1.1", - "symplify\/vendor-patches": "^10.0" + "symplify\/vendor-patches": "^10.2" }, "autoload": { "psr-4": { diff --git a/vendor/rector/rector-nette/packages/NeonParser/NeonNodeTraverser.php b/vendor/rector/rector-nette/packages/NeonParser/NeonNodeTraverser.php index 6f0ada68e29..0ffdefeb877 100644 --- a/vendor/rector/rector-nette/packages/NeonParser/NeonNodeTraverser.php +++ b/vendor/rector/rector-nette/packages/NeonParser/NeonNodeTraverser.php @@ -54,7 +54,7 @@ final class NeonNodeTraverser $neonRector->enterNode($node); } // traverse all children - foreach ($node->getSubNodes() as $subnode) { + foreach ($node->getIterator() as $subnode) { $this->traverse($subnode); } } diff --git a/vendor/rector/rector-nette/packages/NeonParser/Node/Service_.php b/vendor/rector/rector-nette/packages/NeonParser/Node/Service_.php index 262749d20ce..4ac370049b9 100644 --- a/vendor/rector/rector-nette/packages/NeonParser/Node/Service_.php +++ b/vendor/rector/rector-nette/packages/NeonParser/Node/Service_.php @@ -60,15 +60,16 @@ final class Service_ extends \Rector\Nette\NeonParser\Node\AbstractVirtualNode /** * @return Node[] */ - public function getSubNodes() : array + public function &getIterator() : \Generator { - $subNodes = []; if ($this->classLiteralNode instanceof \RectorPrefix20220420\Nette\Neon\Node\LiteralNode) { - $subNodes[] = $this->classLiteralNode; + (yield $this->classLiteralNode); } if ($this->factoryLiteralNode instanceof \RectorPrefix20220420\Nette\Neon\Node\LiteralNode) { - $subNodes[] = $this->factoryLiteralNode; + (yield $this->factoryLiteralNode); + } + foreach ($this->setupMethodCalls as $setupMethodCall) { + (yield $setupMethodCall); } - return \array_merge($subNodes, $this->setupMethodCalls); } } diff --git a/vendor/rector/rector-symfony/config/config.php b/vendor/rector/rector-symfony/config/config.php index 7191cc9abe9..ffb62b14a20 100644 --- a/vendor/rector/rector-symfony/config/config.php +++ b/vendor/rector/rector-symfony/config/config.php @@ -4,12 +4,9 @@ declare (strict_types=1); namespace RectorPrefix20220420; use Rector\Config\RectorConfig; -use Rector\Core\Configuration\Option; use Rector\Core\NonPhpFile\Rector\RenameClassNonPhpRector; use RectorPrefix20220420\Symplify\SmartFileSystem\SmartFileSystem; return static function (\Rector\Config\RectorConfig $rectorConfig) : void { - $parameters = $rectorConfig->parameters(); - $parameters->set(\Rector\Core\Configuration\Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER, null); $services = $rectorConfig->services(); $services->defaults()->public()->autowire()->autoconfigure(); $services->load('Rector\\Symfony\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/{Rector,ValueObject}']); diff --git a/vendor/rector/rector-symfony/src/DataProvider/ServiceMapProvider.php b/vendor/rector/rector-symfony/src/DataProvider/ServiceMapProvider.php index 825aab6916c..42cdc71454e 100644 --- a/vendor/rector/rector-symfony/src/DataProvider/ServiceMapProvider.php +++ b/vendor/rector/rector-symfony/src/DataProvider/ServiceMapProvider.php @@ -3,6 +3,7 @@ declare (strict_types=1); namespace Rector\Symfony\DataProvider; +use Rector\Core\Configuration\Option; use Rector\Symfony\ValueObject\ServiceMap\ServiceMap; use Rector\Symfony\ValueObjectFactory\ServiceMapFactory; use RectorPrefix20220420\Symplify\PackageBuilder\Parameter\ParameterProvider; @@ -11,10 +12,6 @@ use RectorPrefix20220420\Symplify\PackageBuilder\Parameter\ParameterProvider; */ final class ServiceMapProvider { - /** - * @var string - */ - private const SYMFONY_CONTAINER_XML_PATH_PARAMETER = 'symfony_container_xml_path'; /** * @readonly * @var \Symplify\PackageBuilder\Parameter\ParameterProvider @@ -32,7 +29,7 @@ final class ServiceMapProvider } public function provide() : \Rector\Symfony\ValueObject\ServiceMap\ServiceMap { - $symfonyContainerXmlPath = (string) $this->parameterProvider->provideParameter(self::SYMFONY_CONTAINER_XML_PATH_PARAMETER); + $symfonyContainerXmlPath = (string) $this->parameterProvider->provideParameter(\Rector\Core\Configuration\Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER); if ($symfonyContainerXmlPath === '') { return $this->serviceMapFactory->createEmpty(); } diff --git a/vendor/rector/rector-symfony/src/Rector/MethodCall/StringFormTypeToClassRector.php b/vendor/rector/rector-symfony/src/Rector/MethodCall/StringFormTypeToClassRector.php index af574a96d4b..35052a1e85a 100644 --- a/vendor/rector/rector-symfony/src/Rector/MethodCall/StringFormTypeToClassRector.php +++ b/vendor/rector/rector-symfony/src/Rector/MethodCall/StringFormTypeToClassRector.php @@ -22,7 +22,7 @@ final class StringFormTypeToClassRector extends \Rector\Core\Rector\AbstractRect /** * @var string */ - private const DESCRIPTION = 'Turns string Form Type references to their CONSTANT alternatives in FormTypes in Form in Symfony. To enable custom types, add link to your container XML dump in "$parameters->set(Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER, ...);"'; + private const DESCRIPTION = 'Turns string Form Type references to their CONSTANT alternatives in FormTypes in Form in Symfony. To enable custom types, add link to your container XML dump in "$rectorConfig->symfonyContainerXml(...)"'; /** * @readonly * @var \Rector\Symfony\NodeAnalyzer\FormAddMethodCallAnalyzer diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 38e8cfc82be..375921b1d56 100644 --- a/vendor/scoper-autoload.php +++ b/vendor/scoper-autoload.php @@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php'; if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) { spl_autoload_call('RectorPrefix20220420\AutoloadIncluder'); } -if (!class_exists('ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9', false) && !interface_exists('ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9', false) && !trait_exists('ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9', false)) { - spl_autoload_call('RectorPrefix20220420\ComposerAutoloaderInitb6b917d28b8573d48cfb6e801e2a4cc9'); +if (!class_exists('ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626', false) && !interface_exists('ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626', false) && !trait_exists('ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626', false)) { + spl_autoload_call('RectorPrefix20220420\ComposerAutoloaderInitb4d900ca0960e14cd017d258ffc26626'); } if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) { spl_autoload_call('RectorPrefix20220420\Helmich\TypoScriptParser\Parser\AST\Statement'); @@ -59,9 +59,9 @@ if (!function_exists('print_node')) { return \RectorPrefix20220420\print_node(...func_get_args()); } } -if (!function_exists('composerRequireb6b917d28b8573d48cfb6e801e2a4cc9')) { - function composerRequireb6b917d28b8573d48cfb6e801e2a4cc9() { - return \RectorPrefix20220420\composerRequireb6b917d28b8573d48cfb6e801e2a4cc9(...func_get_args()); +if (!function_exists('composerRequireb4d900ca0960e14cd017d258ffc26626')) { + function composerRequireb4d900ca0960e14cd017d258ffc26626() { + return \RectorPrefix20220420\composerRequireb4d900ca0960e14cd017d258ffc26626(...func_get_args()); } } if (!function_exists('scanPath')) {