Skip to content

Commit 22f0a61

Browse files
authored
Vector3 is now a readonly class (#90)
This requires bumping the minimum PHP version to 8.2, and is also BC breaking.
1 parent e7a2125 commit 22f0a61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: "!contains(github.event.head_commit.message, '[ci skip]')"
99
strategy:
1010
matrix:
11-
php: ['8.1', '8.2', '8.3']
11+
php: ['8.2', '8.3']
1212
name: PHP ${{ matrix.php }}
1313
steps:
1414
- uses: actions/checkout@v3

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "library",
55
"license": "LGPL-3.0",
66
"require": {
7-
"php": "^8.1",
7+
"php": "^8.2",
88
"php-64bit": "*"
99
},
1010
"require-dev": {

src/Vector3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
use function sqrt;
3434
use const PHP_ROUND_HALF_UP;
3535

36-
class Vector3{
36+
readonly class Vector3{
3737
public function __construct(
3838
public float|int $x,
3939
public float|int $y,

0 commit comments

Comments
 (0)