- Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
- Fatal error: No code may exist outside of namespace {} in /in/ORDig on line 23
Process exited with code 255.
<?php
namespace Original {
class Original {
public function __construct() {
$this->youCantTouchThis();
}
private function youCantTouchThis() {
var_dump('I\'m so private');
}
}
}
namespace Cheat {
function var_dump() {
var_dump('Gotcha!');
}
class Wrapper extends \Original\Original {
}
}
new Cheat\Wrapper();