Skip to content

Commit d7d4659

Browse files
committed
Rector 0.12.4
1 parent 510ba33 commit d7d4659

File tree

6 files changed

+22
-34
lines changed

6 files changed

+22
-34
lines changed

bin/generate-changelog.php

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@ protected function configure() : void
4747
*/
4848
protected function execute($input, $output) : int
4949
{
50-
$fromCommit = (string) $input->getArgument(self::OPTION_FROM_COMMIT);
51-
$toCommit = (string) $input->getArgument(self::OPTION_TO_COMMIT);
52-
$commitLines = $this->resolveCommitLinesFromToHashes($fromCommit, $toCommit);
50+
$commitHashRange = \sprintf('%s..%s', $input->getArgument(self::OPTION_FROM_COMMIT), $input->getArgument(self::OPTION_TO_COMMIT));
51+
$commitLines = $this->exec(['git', 'log', $commitHashRange, '--reverse', '--pretty=%H %s']);
5352
$commits = \array_map(function (string $line) : array {
5453
[$hash, $message] = \explode(' ', $line, 2);
5554
return ['hash' => $hash, 'message' => $message];
56-
}, $commitLines);
55+
}, \explode("\n", $commitLines));
5756
$i = 0;
5857
foreach ($commits as $commit) {
5958
$searchPullRequestsUri = \sprintf('https://api.github.com/search/issues?q=repo:' . self::DEVELOPMENT_REPOSITORY_NAME . '+%s', $commit['hash']);
@@ -99,17 +98,6 @@ private function exec(array $commandParts) : string
9998
$process->run();
10099
return $process->getOutput();
101100
}
102-
/**
103-
* @return string[]
104-
*/
105-
private function resolveCommitLinesFromToHashes(string $fromCommit, string $toCommit) : array
106-
{
107-
$commitHashRange = \sprintf('%s..%s', $fromCommit, $toCommit);
108-
$output = $this->exec(['git', 'log', $commitHashRange, '--reverse', '--pretty=%H %s']);
109-
$commitLines = \explode("\n", $output);
110-
// remove empty values
111-
return \array_filter($commitLines);
112-
}
113101
}
114102
/**
115103
* Inspired from @see https://github.com/phpstan/phpstan-src/blob/master/bin/generate-changelog.php

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ final class VersionResolver
1616
/**
1717
* @var string
1818
*/
19-
public const PACKAGE_VERSION = '0b1345f2a7214e5d2a4d81fc316920c4ddd56a28';
19+
public const PACKAGE_VERSION = 'eaf1f250031db227ef2c623c16753a3642bfa2bb';
2020
/**
2121
* @var string
2222
*/
23-
public const RELEASE_DATE = '2021-11-15 16:52:59';
23+
public const RELEASE_DATE = '2021-11-15 14:45:09';
2424
public static function resolvePackageVersion() : string
2525
{
2626
$process = new \RectorPrefix20211115\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

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

7-
return ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de::getLoader();
7+
return ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582::getLoader();

vendor/composer/autoload_real.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de
5+
class ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582
66
{
77
private static $loader;
88

@@ -22,15 +22,15 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27-
spl_autoload_unregister(array('ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582', 'loadClassLoader'));
2828

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

33-
call_user_func(\Composer\Autoload\ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de::getInitializer($loader));
33+
call_user_func(\Composer\Autoload\ComposerStaticInit1c857d1d70d95b04b5269943edc23582::getInitializer($loader));
3434
} else {
3535
$classMap = require __DIR__ . '/autoload_classmap.php';
3636
if ($classMap) {
@@ -42,19 +42,19 @@ public static function getLoader()
4242
$loader->register(true);
4343

4444
if ($useStaticLoader) {
45-
$includeFiles = Composer\Autoload\ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de::$files;
45+
$includeFiles = Composer\Autoload\ComposerStaticInit1c857d1d70d95b04b5269943edc23582::$files;
4646
} else {
4747
$includeFiles = require __DIR__ . '/autoload_files.php';
4848
}
4949
foreach ($includeFiles as $fileIdentifier => $file) {
50-
composerRequirec2d7ae4ff32bcda41ebdb820fb49c1de($fileIdentifier, $file);
50+
composerRequire1c857d1d70d95b04b5269943edc23582($fileIdentifier, $file);
5151
}
5252

5353
return $loader;
5454
}
5555
}
5656

57-
function composerRequirec2d7ae4ff32bcda41ebdb820fb49c1de($fileIdentifier, $file)
57+
function composerRequire1c857d1d70d95b04b5269943edc23582($fileIdentifier, $file)
5858
{
5959
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
6060
require $file;

vendor/composer/autoload_static.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de
7+
class ComposerStaticInit1c857d1d70d95b04b5269943edc23582
88
{
99
public static $files = array (
1010
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@@ -3545,9 +3545,9 @@ class ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de
35453545
public static function getInitializer(ClassLoader $loader)
35463546
{
35473547
return \Closure::bind(function () use ($loader) {
3548-
$loader->prefixLengthsPsr4 = ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de::$prefixLengthsPsr4;
3549-
$loader->prefixDirsPsr4 = ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de::$prefixDirsPsr4;
3550-
$loader->classMap = ComposerStaticInitc2d7ae4ff32bcda41ebdb820fb49c1de::$classMap;
3548+
$loader->prefixLengthsPsr4 = ComposerStaticInit1c857d1d70d95b04b5269943edc23582::$prefixLengthsPsr4;
3549+
$loader->prefixDirsPsr4 = ComposerStaticInit1c857d1d70d95b04b5269943edc23582::$prefixDirsPsr4;
3550+
$loader->classMap = ComposerStaticInit1c857d1d70d95b04b5269943edc23582::$classMap;
35513551

35523552
}, null, ClassLoader::class);
35533553
}

vendor/scoper-autoload.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
1313
spl_autoload_call('RectorPrefix20211115\AutoloadIncluder');
1414
}
15-
if (!class_exists('ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de', false) && !interface_exists('ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de', false) && !trait_exists('ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de', false)) {
16-
spl_autoload_call('RectorPrefix20211115\ComposerAutoloaderInitc2d7ae4ff32bcda41ebdb820fb49c1de');
15+
if (!class_exists('ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582', false) && !interface_exists('ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582', false) && !trait_exists('ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582', false)) {
16+
spl_autoload_call('RectorPrefix20211115\ComposerAutoloaderInit1c857d1d70d95b04b5269943edc23582');
1717
}
1818
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)) {
1919
spl_autoload_call('RectorPrefix20211115\Helmich\TypoScriptParser\Parser\AST\Statement');
@@ -3309,9 +3309,9 @@ function print_node() {
33093309
return \RectorPrefix20211115\print_node(...func_get_args());
33103310
}
33113311
}
3312-
if (!function_exists('composerRequirec2d7ae4ff32bcda41ebdb820fb49c1de')) {
3313-
function composerRequirec2d7ae4ff32bcda41ebdb820fb49c1de() {
3314-
return \RectorPrefix20211115\composerRequirec2d7ae4ff32bcda41ebdb820fb49c1de(...func_get_args());
3312+
if (!function_exists('composerRequire1c857d1d70d95b04b5269943edc23582')) {
3313+
function composerRequire1c857d1d70d95b04b5269943edc23582() {
3314+
return \RectorPrefix20211115\composerRequire1c857d1d70d95b04b5269943edc23582(...func_get_args());
33153315
}
33163316
}
33173317
if (!function_exists('parseArgs')) {

0 commit comments

Comments
 (0)