<?php
class Test {
private $booleanWert;
public function setBooleanWert(bool $booleanWert) {
$this->booleanWert = $booleanWert;
}
public function getBooleanWert() {
return $this->booleanWert;
}
}
$t = new Test();
$t->setBooleanWert(true);
echo($t->getBooleanWert());
Catchable fatal error: Argument 1 passed to Test::setBooleanWert() must be an instance of bool, boolean given, called in /in/TXAWH on line 17 and defined in /in/TXAWH on line 6
Process exited with code 255.