From 767d45536d540bf3d2c896d552524c8fd2f57b9b Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Mon, 27 Jan 2020 11:23:19 +0100 Subject: [PATCH] Use correct magic const for location Using __DIR__ for an include isn't a great idea, we want to have the file. --- src/IncludeInterceptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IncludeInterceptor.php b/src/IncludeInterceptor.php index 0b52534..fefbd42 100644 --- a/src/IncludeInterceptor.php +++ b/src/IncludeInterceptor.php @@ -42,7 +42,7 @@ final class IncludeInterceptor { - public const LOCATION = __DIR__; + public const LOCATION = __FILE__; private const STREAM_OPEN_FOR_INCLUDE = 0x00000080; /**