Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / nikic / php-parser / doc / 2_Usage_of_basic_components.markdown
index 4755f17618e9acd9190881cc1fac6ab5c635e420..462b56374eed1c8baad31c85d9fbc938d3436caa 100644 (file)
@@ -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);