Version: 4.0.0
Bug Description
Whenever there's a curly braced variable in a string ("{$var}"), $level in scanPhp() is increased twice. As a result, any class within the same file following such token is ignored.
Steps To Reproduce
<?php
print "Hello {$World}!";
class Bar // This class won't be found.
{
function fn()
{
}
}
Issue is not present in v3.