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:
parent
81b7be3ba6
commit
2b0bd657bb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user