mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 23:52:23 +00:00
Rollback e2e define-contant as found error in consumer (#2379)
This commit is contained in:
parent
38ed8d2f6d
commit
30b5b53c0e
|
@ -17,6 +17,7 @@ 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'
|
||||||
|
|
4
e2e/define-constant/composer.json
Normal file
4
e2e/define-constant/composer.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"autoload": {
|
||||||
|
}
|
||||||
|
}
|
9
e2e/define-constant/rector.php
Normal file
9
e2e/define-constant/rector.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use Rector\Config\RectorConfig;
|
||||||
|
|
||||||
|
return static function (RectorConfig $rectorConfig): void {
|
||||||
|
$rectorConfig->paths([__DIR__ . '/src']);
|
||||||
|
};
|
5
e2e/define-constant/src/DefineConstant.php
Normal file
5
e2e/define-constant/src/DefineConstant.php
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (! defined('APPPATH')) {
|
||||||
|
define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user