Skip to content

Commit

Permalink
Rollback e2e define-contant as found error in consumer (#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 27, 2022
1 parent 38ed8d2 commit 30b5b53
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/target-repository/.github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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'
Expand Down
4 changes: 4 additions & 0 deletions e2e/define-constant/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"autoload": {
}
}
9 changes: 9 additions & 0 deletions e2e/define-constant/rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([__DIR__ . '/src']);
};
5 changes: 5 additions & 0 deletions e2e/define-constant/src/DefineConstant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

if (! defined('APPPATH')) {
define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
}

0 comments on commit 30b5b53

Please sign in to comment.