Skip to content

Commit ebc7aa7

Browse files
authored
Merge pull request #5 from lentex/dev/housekeeping
Housekeeping
2 parents 95de29a + 71de523 commit ebc7aa7

4 files changed

Lines changed: 14 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
matrix:
88
php: [ "8.3" ]
99

10-
runs-on: [self-hosted, linux, x64]
10+
runs-on: [ubuntu-latest]
1111
name: PHP@${{ matrix.php }}
1212

1313
steps:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"type": "package",
44
"description": "The Gaudigame Engine",
55
"require": {
6-
"php": "8.3.*"
6+
"php": "8.3.* | 8.4.*"
77
},
88
"require-dev": {
9-
"laravel/pint": "^1.14",
10-
"pestphp/pest": "^2.34",
11-
"pestphp/pest-plugin-type-coverage": "^2.8",
12-
"phpstan/phpstan": "^1.10.59"
9+
"laravel/pint": "^1.0",
10+
"pestphp/pest": "^3.0",
11+
"pestphp/pest-plugin-type-coverage": "^3.0",
12+
"phpstan/phpstan": "^1.0"
1313
},
1414
"autoload": {
1515
"psr-4": {

phpstan.neon

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@ parameters:
55
level: max
66

77
treatPhpDocTypesAsCertain: false
8-
checkMissingIterableValueType: false
9-
checkGenericClassInNonGenericObjectType: false
108
reportUnmatchedIgnoredErrors: true
119

1210
ignoreErrors:
13-
# Pest implicitly binds $this to the current test case
14-
# @see https://pestphp.com/docs/underlying-test-case
1511
-
1612
message: '#^Undefined variable: \$this$#'
17-
reportUnmatched: false
1813
path: tests/*
1914
-
2015
message: '#^Call to an undefined method Pest\\Expectation<([a-zA-Z|\\\\]+)>\:\:[a-zA-Z]+\(\)\.$#'
21-
reportUnmatched: false
2216
path: tests/*
2317
-
2418
message: "#^Call to an undefined method Pest\\\\PendingCalls\\\\TestCall\\:\\:expect\\(\\)\\.$#"
25-
reportUnmatched: false
19+
path: tests/*
20+
-
21+
message: "#^Access to an undefined property PHPUnit\\\\Framework\\\\TestCase\\:\\:\\$#"
2622
path: tests/*
2723

tests/Pest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
return $this;
2020
});
2121

22-
expect()->extend('toBeExactGuess', function (float $boost = null) {
22+
expect()->extend('toBeExactGuess', function (?float $boost = null) {
2323
$expectedPoints = (float) (new DefaultCalculationModel())->getPointsForExactGuess();
2424
$expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints;
2525

@@ -33,7 +33,7 @@
3333
return $this;
3434
});
3535

36-
expect()->extend('toBeWrongGuess', function (float $boost = null) {
36+
expect()->extend('toBeWrongGuess', function (?float $boost = null) {
3737
$expectedPoints = (float) (new DefaultCalculationModel())->getPointsForWrongGuess();
3838
$expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints;
3939

@@ -47,7 +47,7 @@
4747
return $this;
4848
});
4949

50-
expect()->extend('toBeExactGapGuess', function (float $boost = null) {
50+
expect()->extend('toBeExactGapGuess', function (?float $boost = null) {
5151
$expectedPoints = (float) (new DefaultCalculationModel())->getPointsForExactGap();
5252
$expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints;
5353

@@ -61,7 +61,7 @@
6161
return $this;
6262
});
6363

64-
expect()->extend('toBeCorrectTendencyGuess', function (float $boost = null) {
64+
expect()->extend('toBeCorrectTendencyGuess', function (?float $boost = null) {
6565
$expectedPoints = (float) (new DefaultCalculationModel())->getPointsForTendency();
6666
$expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints;
6767

@@ -75,7 +75,7 @@
7575
return $this;
7676
});
7777

78-
expect()->extend('toBeDrawGapGuess', function (float $boost = null) {
78+
expect()->extend('toBeDrawGapGuess', function (?float $boost = null) {
7979
$expectedPoints = (float) (new DefaultCalculationModel())->getPointsForDrawGap();
8080
$expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints;
8181

0 commit comments

Comments
 (0)