Skip to content

Commit 1fc1622

Browse files
committed
make phpstan happy
1 parent 94bdb3b commit 1fc1622

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: phpstan.neon

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ parameters:
55

66
ignoreErrors:
77
- "#Undefined variable: \\$this#"
8+
- "#Anonymous function should return Pest\\\\Expectation but returns Pest\\\\Mixins\\\\Expectation#"

Diff for: src/Autoload.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Faissaloux\PestMath;
66

7-
expect()->extend('toBeDivisibleBy', function (int $divisor) {
7+
use Pest\Expectation;
8+
9+
expect()->extend('toBeDivisibleBy', function (int $divisor): Expectation {
810
return expect($this->value % $divisor === 0)->toBeTrue();
911
});

0 commit comments

Comments
 (0)