[Scoped] Add e2e define constant error on php 7.x (#1139)

* [Scoped] Add e2e define constant

* [ci-review] Rector Rectify

* define src path

* define src path

* eol

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Abdul Malik Ikhsan 2021-11-04 19:40:12 +07:00 committed by GitHub
parent e64cf0569d
commit 444cbd20d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [__DIR__ . '/src']);
};

View File

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