A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nette/robot-loader/issues/28 below:

Curly braced variables in strings break class scanning · Issue #28 · nette/robot-loader · GitHub

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4