File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function compile(
42
42
$ fqcn = (string ) ($ class = ($ context ->getClass () ?? new ClassReferenceMetadata ($ className , $ namespace )));
43
43
44
44
if ($ context ->getFilePath () !== null && file_exists ($ context ->getFilePath ())) {
45
- include $ context ->getFilePath ();
45
+ include_once $ context ->getFilePath ();
46
46
}
47
47
48
48
$ tree = $ this ->strategy ->buildTree (
@@ -54,9 +54,9 @@ public function compile(
54
54
$ prettyPrinter = new PrettyPrinter \Standard ();
55
55
if ($ context ->getFilePath () !== null && is_writable (dirname ($ context ->getFilePath ()))) {
56
56
file_put_contents ($ context ->getFilePath (), $ prettyPrinter ->prettyPrintFile ($ tree ));
57
- include $ context ->getFilePath ();
57
+ include_once $ context ->getFilePath ();
58
58
} else {
59
- include 'data://text/plain;base64, ' . base64_encode ($ prettyPrinter ->prettyPrintFile ($ tree ));
59
+ include_once 'data://text/plain;base64, ' . base64_encode ($ prettyPrinter ->prettyPrintFile ($ tree ));
60
60
}
61
61
62
62
return new $ fqcn ();
You can’t perform that action at this time.
0 commit comments