From b6ba9872a0cda9e1363b8e531d1146f4d2f7809d Mon Sep 17 00:00:00 2001 From: Lucisu <46996317+Lucisu@users.noreply.github.com> Date: Mon, 3 Oct 2022 08:27:32 +0200 Subject: [PATCH] Fix issue #216 --- lib/runner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner.php b/lib/runner.php index 7330d91..6d6565b 100644 --- a/lib/runner.php +++ b/lib/runner.php @@ -68,7 +68,7 @@ function parse_files( $files, $root ) { foreach ( $file->getIncludes() as $include ) { $out['includes'][] = array( - 'name' => $include->getName(), + 'name' => property_exists( $include->getNode()->expr, 'value' ) ? $include->getName() : '', 'line' => $include->getLineNumber(), 'type' => $include->getType(), );