Rollback stubs-rector tweak and remove e2e/define-constant (#2377)

This commit is contained in:
Abdul Malik Ikhsan 2022-05-27 22:48:23 +07:00 committed by GitHub
parent 2c46d4fc4d
commit 38ed8d2f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 24 deletions

View File

@ -17,7 +17,6 @@ jobs:
matrix: matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1'] php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
directory: directory:
- 'e2e/define-constant'
- 'e2e/dont-execute-code' - 'e2e/dont-execute-code'
- 'e2e/finalize' - 'e2e/finalize'
- 'e2e/parse-php7-code' - 'e2e/parse-php7-code'

View File

@ -1,4 +0,0 @@
{
"autoload": {
}
}

View File

@ -1,9 +0,0 @@
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([__DIR__ . '/src']);
};

View File

@ -1,5 +0,0 @@
<?php
if (! defined('APPPATH')) {
define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
}

View File

@ -1,6 +1,6 @@
<?php <?php
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) { if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
/** /**
* @since 8.1 * @since 8.1
*/ */
@ -13,7 +13,7 @@ if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
} }
} }
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum')) { if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum', false)) {
/** /**
* @since 8.1 * @since 8.1
*/ */

View File

@ -1,6 +1,6 @@
<?php <?php
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) { if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
class ReflectionUnionType extends ReflectionType class ReflectionUnionType extends ReflectionType
{ {
/** @return ReflectionType[] */ /** @return ReflectionType[] */
@ -11,7 +11,7 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
} }
} }
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) { if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
#[Attribute(Attribute::TARGET_CLASS)] #[Attribute(Attribute::TARGET_CLASS)]
class Attribute class Attribute
{ {
@ -72,7 +72,7 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) {
} }
} }
if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange')) { if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
#[Attribute(Attribute::TARGET_METHOD)] #[Attribute(Attribute::TARGET_METHOD)]
final class ReturnTypeWillChange final class ReturnTypeWillChange
{ {