class YourWorstNightmare {
/** @var string */
var $private;
public function __construct(){ $array = array(
'wait'=>'itgetsworse');
$bool = (BOOLEAN) 1;
$ternaries=$bool?0 : 1;
if ($bool) { echo 'hello' ; } else
if ($ternaries === 1) { echo "goodbye"; }
} function dosomething(): ?string {
return ""; }
}
$nightmare=new YourWorstNightmare() ;
class YourWorstNightmare
{
/** @var string */
public $private;
public function __construct()
{
$array = [
'wait' => 'itgetsworse',
];
$bool = (bool) 1;
$ternaries = $bool ? 0 : 1;
if ($bool) {
echo 'hello';
} elseif ($ternaries === 1) {
echo 'goodbye';
}
}
public function dosomething(): ?string
{
return '';
}
}
$nightmare = new YourWorstNightmare();