mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
Updated Rector to commit 5595f80ed176f93485f50ff6dabad79cedbb72dc
5595f80ed1
Update github actions/checkout from v3 to v4 (#4909)
This commit is contained in:
parent
c5dca33b93
commit
491915e31b
2
.github/workflows/along_other_packages.yaml
vendored
2
.github/workflows/along_other_packages.yaml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
name: "PHP ${{ matrix.php_version }}"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/bare_run.yaml
vendored
2
.github/workflows/bare_run.yaml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
-
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
2
.github/workflows/e2e.yaml
vendored
2
.github/workflows/e2e.yaml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
name: End to end test - ${{ matrix.directory }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/e2e_diff.yaml
vendored
2
.github/workflows/e2e_diff.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
||||
name: End to end test with diff - ${{ matrix.directory }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/e2e_global.yaml
vendored
2
.github/workflows/e2e_global.yaml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
name: End to end test - ${{ matrix.directory }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/e2e_php72.yaml
vendored
2
.github/workflows/e2e_php72.yaml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
name: End to end test - PHP 7.2 with load ReflectionUnionType stub
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/e2e_php74.yaml
vendored
2
.github/workflows/e2e_php74.yaml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
name: End to end test - PHP 7.4 and Match class name
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
2
.github/workflows/standalone_rule_test.yaml
vendored
2
.github/workflows/standalone_rule_test.yaml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
name: End to end test - ${{ matrix.directory }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
|
@ -138,7 +138,7 @@ CODE_SAMPLE
|
||||
private function refactorEqualsMethodCall(MethodCall $methodCall) : ?Identical
|
||||
{
|
||||
$expr = $this->getNonEnumReturnTypeExpr($methodCall->var);
|
||||
if ($expr === null) {
|
||||
if (!$expr instanceof Expr) {
|
||||
$expr = $this->getValidEnumExpr($methodCall->var);
|
||||
if (!$expr instanceof Expr) {
|
||||
return null;
|
||||
@ -149,7 +149,7 @@ CODE_SAMPLE
|
||||
return null;
|
||||
}
|
||||
$right = $this->getNonEnumReturnTypeExpr($arg->value);
|
||||
if ($right === null) {
|
||||
if (!$right instanceof Expr) {
|
||||
$right = $this->getValidEnumExpr($arg->value);
|
||||
if (!$right instanceof Expr) {
|
||||
return null;
|
||||
|
@ -3,6 +3,8 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\TypeDeclaration\Rector\ClassMethod;
|
||||
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\AssignOp\Coalesce as AssignOpCoalesce;
|
||||
@ -133,7 +135,7 @@ CODE_SAMPLE
|
||||
$firstArg = $node->getArgs()[0];
|
||||
$nodeToCheck = $firstArg->value;
|
||||
}
|
||||
if ($node instanceof Node\Stmt\Expression) {
|
||||
if ($node instanceof Expression) {
|
||||
$nodeToCheck = $node->expr;
|
||||
}
|
||||
if ($node instanceof Coalesce) {
|
||||
@ -142,7 +144,7 @@ CODE_SAMPLE
|
||||
if ($node instanceof AssignOpCoalesce) {
|
||||
$nodeToCheck = $node->var;
|
||||
}
|
||||
if ($nodeToCheck instanceof Node\Expr\MethodCall) {
|
||||
if ($nodeToCheck instanceof MethodCall) {
|
||||
return $nodeToCheck->var instanceof Variable && $this->isName($nodeToCheck->var, $paramName);
|
||||
}
|
||||
if ($nodeToCheck instanceof ArrayDimFetch) {
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '5919201e137b5ed041eebdf891ff2bada22fddb1';
|
||||
public const PACKAGE_VERSION = '5595f80ed176f93485f50ff6dabad79cedbb72dc';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-09-04 17:30:16';
|
||||
public const RELEASE_DATE = '2023-09-04 20:57:25';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -11,7 +11,7 @@ jobs:
|
||||
steps:
|
||||
-
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Must be used to trigger workflow after push
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
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 ComposerAutoloaderInitb65aa1603d7e675653c9c0f0cb1c3897::getLoader();
|
||||
return ComposerAutoloaderInita4822cf75470888d0b97f29c7b22e1fb::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 ComposerAutoloaderInitb65aa1603d7e675653c9c0f0cb1c3897
|
||||
class ComposerAutoloaderInita4822cf75470888d0b97f29c7b22e1fb
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitb65aa1603d7e675653c9c0f0cb1c3897
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb65aa1603d7e675653c9c0f0cb1c3897', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInita4822cf75470888d0b97f29c7b22e1fb', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb65aa1603d7e675653c9c0f0cb1c3897', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita4822cf75470888d0b97f29c7b22e1fb', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb::$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 ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897
|
||||
class ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -2611,9 +2611,9 @@ class ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb65aa1603d7e675653c9c0f0cb1c3897::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita4822cf75470888d0b97f29c7b22e1fb::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
12
vendor/composer/installed.json
vendored
12
vendor/composer/installed.json
vendored
@ -908,17 +908,17 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan\/phpstan",
|
||||
"version": "1.10.32",
|
||||
"version_normalized": "1.10.32.0",
|
||||
"version": "1.10.33",
|
||||
"version_normalized": "1.10.33.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/phpstan\/phpstan.git",
|
||||
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44"
|
||||
"reference": "03b1cf9f814ba0863c4e9affea49a4d1ed9a2ed1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
|
||||
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/03b1cf9f814ba0863c4e9affea49a4d1ed9a2ed1",
|
||||
"reference": "03b1cf9f814ba0863c4e9affea49a4d1ed9a2ed1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -927,7 +927,7 @@
|
||||
"conflict": {
|
||||
"phpstan\/phpstan-shim": "*"
|
||||
},
|
||||
"time": "2023-08-24T21:54:50+00:00",
|
||||
"time": "2023-09-04T12:20:53+00:00",
|
||||
"bin": [
|
||||
"phpstan",
|
||||
"phpstan.phar"
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
Binary file not shown.
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
@ -1,16 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmTn0ZAACgkQU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OS0ovoWmjkj9837EA5o2FAkhA5njlpvRs1l5Jt/tZsZtJTcDjPYfP5kIGbOwp
|
||||
V6xKYW7JYht+O0si3GxGmWGOE4VbOHLpUDpLMmVu53njjeGAIkPgX53TqBRbAbVL
|
||||
FjpDSZYC08lE4WblqXZEP6aKqVqthQ4LcGfyZDvuWDgPGHf86cTvfHQvtqRY45kU
|
||||
GhFDz6IfVlwBrfpc4hKfbhF6Q3Txm8ZSSfiVHim8JFjCqO+jn4qmaXGaOqbNUfv9
|
||||
fLgg7Bbnu1tZdMv6JJP5Kmk0x5wp4m2vFxDd6NGfm7uz9182/LtXOjqQ0MuGfL+j
|
||||
Dw53dl+WdUpr4Xk1m1GkYwDF9zLIwBB7dEghz6c4nbiGvh31MUk6N+4N2eGkjtWW
|
||||
B1PPORcpxxXSlhtftCwsJVxRFodQu9cmI0qmw4EUEipFrkFuT7a1rNF48NFyfRMh
|
||||
PcB/UcUHMCL7owhfQEEuPvqIPJS4saesCdFeJAM0MKuXB1nNGTQ=
|
||||
=HpaR
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Loading…
x
Reference in New Issue
Block a user