Skip to content

Commit

Permalink
Updated Rector to commit 7ba13ad
Browse files Browse the repository at this point in the history
rectorphp/rector-src@7ba13ad BinaryOpConditionsCollector: add documentation (#1611)
  • Loading branch information
TomasVotruba committed Jan 1, 2022
1 parent b5d89bc commit b6caca1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
8 changes: 8 additions & 0 deletions packages/NodeCollector/BinaryOpConditionsCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
final class BinaryOpConditionsCollector
{
/**
* Collects operands of a sequence of applications of a given left-associative binary operation.
*
* For example, for `a + b + c`, which is parsed as `(Plus (Plus a b) c)`, it will return `[a, b, c]`.
* Note that parenthesization not matching the associativity (e.g. `a + (b + c)`) will return the parenthesized
* nodes as standalone operands (`[a, b + c]`) even for associative operations.
* Similarly, for right-associative operations (e.g. `a ?? b ?? c`), the result produced by
* the implicit parenthesization (`[a, b ?? c]`) might not match the expectations.
*
* @param class-string<BinaryOp> $binaryOpClass
* @return Expr[]
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '34c61ba4498150972db843fca807416540ca71e8';
public const PACKAGE_VERSION = '7ba13adac2dd854e9ae2dfc6399aaf57720b59d8';
/**
* @var string
*/
public const RELEASE_DATE = '2022-01-01 18:18:04';
public const RELEASE_DATE = '2022-01-01 23:30:48';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20220101\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

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

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7
class ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a
{
private static $loader;

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

spl_autoload_register(array('ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInit48c31c6acffc68fd072e20917a1836b7::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,12 +42,12 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit48c31c6acffc68fd072e20917a1836b7::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire48c31c6acffc68fd072e20917a1836b7($fileIdentifier, $file);
composerRequirefeef1c2b35767d13d810ba241d4d088a($fileIdentifier, $file);
}

return $loader;
Expand All @@ -59,7 +59,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequire48c31c6acffc68fd072e20917a1836b7($fileIdentifier, $file)
function composerRequirefeef1c2b35767d13d810ba241d4d088a($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit48c31c6acffc68fd072e20917a1836b7
class ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -3846,9 +3846,9 @@ class ComposerStaticInit48c31c6acffc68fd072e20917a1836b7
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit48c31c6acffc68fd072e20917a1836b7::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit48c31c6acffc68fd072e20917a1836b7::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit48c31c6acffc68fd072e20917a1836b7::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitfeef1c2b35767d13d810ba241d4d088a::$classMap;

}, null, ClassLoader::class);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20220101\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7', false) && !interface_exists('ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7', false) && !trait_exists('ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7', false)) {
spl_autoload_call('RectorPrefix20220101\ComposerAutoloaderInit48c31c6acffc68fd072e20917a1836b7');
if (!class_exists('ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a', false) && !interface_exists('ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a', false) && !trait_exists('ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a', false)) {
spl_autoload_call('RectorPrefix20220101\ComposerAutoloaderInitfeef1c2b35767d13d810ba241d4d088a');
}
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('RectorPrefix20220101\Helmich\TypoScriptParser\Parser\AST\Statement');
Expand Down Expand Up @@ -78,9 +78,9 @@ function print_node() {
return \RectorPrefix20220101\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire48c31c6acffc68fd072e20917a1836b7')) {
function composerRequire48c31c6acffc68fd072e20917a1836b7() {
return \RectorPrefix20220101\composerRequire48c31c6acffc68fd072e20917a1836b7(...func_get_args());
if (!function_exists('composerRequirefeef1c2b35767d13d810ba241d4d088a')) {
function composerRequirefeef1c2b35767d13d810ba241d4d088a() {
return \RectorPrefix20220101\composerRequirefeef1c2b35767d13d810ba241d4d088a(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down

0 comments on commit b6caca1

Please sign in to comment.