2012-11-25 13:10:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Foo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* class Fail { }
|
|
|
|
*/
|
|
|
|
class StripNoise
|
|
|
|
{
|
|
|
|
public function test()
|
|
|
|
{
|
|
|
|
return <<<A
|
|
|
|
class Fail2
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
A
|
2014-04-28 13:19:38 +00:00
|
|
|
. <<< AB
|
2012-11-25 13:10:58 +00:00
|
|
|
class Fail3
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2014-04-28 13:19:38 +00:00
|
|
|
AB
|
|
|
|
. <<<'TEST'
|
|
|
|
class Fail4
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
TEST
|
|
|
|
. <<< 'ANOTHER'
|
|
|
|
class Fail5
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
ANOTHER
|
2019-04-03 08:33:58 +00:00
|
|
|
. <<< "ONEMORE"
|
2014-04-28 13:19:38 +00:00
|
|
|
class Fail6
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2019-04-03 08:33:58 +00:00
|
|
|
ONEMORE
|
|
|
|
. <<<PHP73
|
|
|
|
class Fail7
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
PHP73;
|
2012-11-25 13:10:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function test2()
|
|
|
|
{
|
|
|
|
$class = 'class Fail4 {}';
|
|
|
|
}
|
|
|
|
}
|