mirror of https://github.com/rectorphp/rector.git
Rollback stubs-rector tweak and remove e2e/define-constant (#2377)
This commit is contained in:
parent
2c46d4fc4d
commit
38ed8d2f6d
|
@ -17,7 +17,6 @@ jobs:
|
|||
matrix:
|
||||
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
||||
directory:
|
||||
- 'e2e/define-constant'
|
||||
- 'e2e/dont-execute-code'
|
||||
- 'e2e/finalize'
|
||||
- 'e2e/parse-php7-code'
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"autoload": {
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->paths([__DIR__ . '/src']);
|
||||
};
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
|
||||
if (! defined('APPPATH')) {
|
||||
define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
|
||||
class ReflectionUnionType extends 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)]
|
||||
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)]
|
||||
final class ReturnTypeWillChange
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue