We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bdb3b commit 1fc1622Copy full SHA for 1fc1622
phpstan.neon
@@ -5,3 +5,4 @@ parameters:
5
6
ignoreErrors:
7
- "#Undefined variable: \\$this#"
8
+ - "#Anonymous function should return Pest\\\\Expectation but returns Pest\\\\Mixins\\\\Expectation#"
src/Autoload.php
@@ -4,6 +4,8 @@
4
namespace Faissaloux\PestMath;
-expect()->extend('toBeDivisibleBy', function (int $divisor) {
+use Pest\Expectation;
+
9
+expect()->extend('toBeDivisibleBy', function (int $divisor): Expectation {
10
return expect($this->value % $divisor === 0)->toBeTrue();
11
});
0 commit comments