Skip to content

Commit 512331b

Browse files
committed
fix
1 parent 3173381 commit 512331b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Types/Point.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,10 @@
1616
*/
1717
class Point implements Jsonable, Arrayable
1818
{
19-
public float $x = 0;
20-
21-
public float $y = 0;
22-
23-
/**
24-
* Point constructor.
25-
*
26-
* @param float $x
27-
* @param float $y
28-
*/
29-
public function __construct(float $x = 0, float $y = 0)
19+
public function __construct(public float $x = 0, public float $y = 0)
3020
{
31-
$this->x = $x;
32-
$this->y = $y;
3321
}
3422

35-
/**
36-
* @return array
37-
*/
3823
public function toArray(): array
3924
{
4025
return [

0 commit comments

Comments
 (0)