Skip to content

Commit

Permalink
Fix __DIR__ in global constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 14, 2020
1 parent b537b97 commit 4a9c159
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -21,7 +21,7 @@
"nette/utils": "^3.1.1",
"nikic/php-parser": "^4.5.0",
"ondram/ci-detector": "^3.1",
"ondrejmirtes/better-reflection": "^4.3.10",
"ondrejmirtes/better-reflection": "^4.3.11",
"phpdocumentor/type-resolver": "1.0.1",
"phpstan/phpdoc-parser": "^0.4.8",
"react/child-process": "^0.6.1",
Expand Down
Expand Up @@ -110,6 +110,10 @@ public function dataConst(): array
'ConstFile\\ANOTHER_NAME',
'bar_images',
],
[
'const_with_dir_const',
__DIR__ . '/data',
],
];
}

Expand Down
Expand Up @@ -8,3 +8,5 @@
define('ConstFile\\ANOTHER_NAME', 'bar_images');

define('TEST_VARIABLE', $foo);

define('const_with_dir_const', __DIR__);

0 comments on commit 4a9c159

Please sign in to comment.