Skip to content

Commit

Permalink
Merge pull request #18 from QuintenJustus/fix/support-php-81
Browse files Browse the repository at this point in the history
Support PHP 8.1
  • Loading branch information
cjmellor authored Jul 31, 2023
2 parents 87ebcb8 + 9198f11 commit c1e657d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.2 ]
php: [ 8.1, 8.2 ]
laravel: [ 10 ]
stability: [ prefer-lowest, prefer-stable ]

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.1",
"illuminate/contracts": "^10.0",
"laravel/pint": "^1.10",
"spatie/laravel-package-tools": "^1.15"
Expand Down
6 changes: 5 additions & 1 deletion src/Concerns/GiveExperience.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ trait GiveExperience
public function addPoints(
int $amount,
int $multiplier = null,
string $type = AuditType::Add->value,
string $type = null,
string $reason = null
): Experience {
if ($type === null) {
$type = AuditType::Add->value;
}

/**
* If the Multiplier Service is enabled, apply the Multipliers.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Services/MultiplierService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Support\Collection;

readonly class MultiplierService
class MultiplierService
{
public function __construct(
private Collection $multipliers,
Expand Down

0 comments on commit c1e657d

Please sign in to comment.