From 2b0bd657bb99e58558a8913899d5ec6539566b03 Mon Sep 17 00:00:00 2001 From: Loek van der Linde Date: Tue, 17 Apr 2018 17:29:16 +0200 Subject: [PATCH] Update 2_Usage_of_basic_components.markdown (#494) --- doc/2_Usage_of_basic_components.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/2_Usage_of_basic_components.markdown b/doc/2_Usage_of_basic_components.markdown index 4755f17..462b563 100644 --- a/doc/2_Usage_of_basic_components.markdown +++ b/doc/2_Usage_of_basic_components.markdown @@ -409,7 +409,7 @@ $files = new \RegexIterator($files, '/\.php$/'); foreach ($files as $file) { try { // read the file that should be converted - $code = file_get_contents($file); + $code = file_get_contents($file->getPathName()); // parse $stmts = $parser->parse($code);