Changes in new versions / PHP 8.0

// *** before: ***
class Point {
    public float $x;
    public float $y;

    public function __construct(float $x, float $y) {
        $this->x = $x;
        $this->y = $y;
    }
}

// *** in version 8.0: ***
class Point {
    public function __construct(
        public float $x,
        public float $y,
    ) {}
}