Skip to content

Commit 2e0b7f7

Browse files
committed
set DOKU_INC in rector
I had several cases where rector failed to work on plugins without this. I'm not 100% sure why, but it doesn't hurt to set this early.
1 parent 4864975 commit 2e0b7f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_test/rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
define('DOKU_INC', __DIR__ . '/../');
6+
57
use dokuwiki\test\rector\DokuWikiPtlnRector;
68
use dokuwiki\test\rector\DokuWikiRenamePrintToEcho;
79
use Rector\Caching\ValueObject\Storage\FileCacheStorage;

0 commit comments

Comments
 (0)