mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-26 20:04:48 +01:00
Update 2_Usage_of_basic_components.markdown (#494)
This commit is contained in:
parent
81b7be3ba6
commit
2b0bd657bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user