Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit d5d7800

Browse files
committed
Showcase that it cannot read const from inside the files themselves
1 parent 3fa6401 commit d5d7800

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
define('FILE_DOES_NOT_EXIST_INLINE', 'a_file_that_does_not_exist.txt');
6+
7+
include __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;
8+
include_once __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;
9+
require __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;
10+
require_once __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;

0 commit comments

Comments
 (0)