1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

Update 2_Usage_of_basic_components.markdown (#494)

This commit is contained in:
Loek van der Linde 2018-04-17 17:29:16 +02:00 committed by Nikita Popov
parent 81b7be3ba6
commit 2b0bd657bb

View File

@ -409,7 +409,7 @@ $files = new \RegexIterator($files, '/\.php$/');
foreach ($files as $file) { foreach ($files as $file) {
try { try {
// read the file that should be converted // read the file that should be converted
$code = file_get_contents($file); $code = file_get_contents($file->getPathName());
// parse // parse
$stmts = $parser->parse($code); $stmts = $parser->parse($code);