The magic method __construct() can't be marked with Override attribute.
For example:
class Base {
public $val;
public function __construct() {
$this->val = 0;
}
}
class Derived extends Base {
#[\Override]
public function __construct() {
parent::__construct();
++$this->val;
}
}
In PHP 8.3 this example raises an error message
Fatal error: Derived::__construct() has #[\Override] attribute, but no matching parent method exists