mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 4bd93ba93ddde14444c7635b77007ee523a760f3
4bd93ba93d
Handle missing token on Rector CI workflow on forks (#3433)
This commit is contained in:
parent
7d0f151a40
commit
da8b1801b0
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'a2cd7283fbf2d6b2904016c51e3f4a545caa0256';
|
||||
public const PACKAGE_VERSION = '4bd93ba93ddde14444c7635b77007ee523a760f3';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-03-01 12:55:50';
|
||||
public const RELEASE_DATE = '2023-03-01 22:17:15';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -10,12 +10,20 @@ jobs:
|
||||
if: github.repository == '__CURRENT_REPOSITORY__'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
|
||||
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4
|
||||
-
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# needed to trigger workflow after push
|
||||
# Must be used to trigger workflow after push
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
# in forks, the token is not available - so we cannot use it
|
||||
-
|
||||
if: github.event.pull_request.head.repo.full_name != github.repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
-
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit0e6da6cf4f26530f17a5ba7ff7c63f9b::getLoader();
|
||||
return ComposerAutoloaderInit26ad315690cbd9f44d8bb798dcd0359e::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit0e6da6cf4f26530f17a5ba7ff7c63f9b
|
||||
class ComposerAutoloaderInit26ad315690cbd9f44d8bb798dcd0359e
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit0e6da6cf4f26530f17a5ba7ff7c63f9b
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0e6da6cf4f26530f17a5ba7ff7c63f9b', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit26ad315690cbd9f44d8bb798dcd0359e', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0e6da6cf4f26530f17a5ba7ff7c63f9b', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit26ad315690cbd9f44d8bb798dcd0359e', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b
|
||||
class ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3126,9 +3126,9 @@ class ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0e6da6cf4f26530f17a5ba7ff7c63f9b::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit26ad315690cbd9f44d8bb798dcd0359e::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user