Skip to content

Commit

Permalink
Vector3 is now a readonly class (#90)
Browse files Browse the repository at this point in the history
This requires bumping the minimum PHP version to 8.2, and is also BC breaking.
  • Loading branch information
Dhaiven authored Dec 2, 2024
1 parent e7a2125 commit 22f0a61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
php: ['8.2', '8.3']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "LGPL-3.0",
"require": {
"php": "^8.1",
"php": "^8.2",
"php-64bit": "*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Vector3.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use function sqrt;
use const PHP_ROUND_HALF_UP;

class Vector3{
readonly class Vector3{
public function __construct(
public float|int $x,
public float|int $y,
Expand Down

0 comments on commit 22f0a61

Please sign in to comment.