Skip to content

Commit 8e5dd7e

Browse files
Larastan Level 9 III
Finally got enough Larastan under my belt to see how to get rid of the error. Fixed #3
1 parent 67dc6f5 commit 8e5dd7e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"authors": [
1919
{
2020
"name": "Michael Flynn",
21-
"email": "flynnmj@devnoise.com.com",
21+
"email": "flynnmj@devnoise.com",
2222
"homepage": "https://github.com/devNoiseConsulting"
2323
},
2424
{

phpstan-baseline.neon

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ parameters:
1414
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:toSearchableArray\\(\\)\\.$#"
1515
count: 1
1616
path: src/PostgresEngine.php
17-
-
18-
message: "#^Access to an undefined property ScoutEngines\\\\Postgres\\\\PostgresEngineServiceProvider\\:\\:\\$callback\\.$#"
19-
count: 1
20-
path: src/PostgresEngineServiceProvider.php
17+

src/PostgresEngineServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ protected function registerBuilderMacro(string $name, string $class): void
5050
{
5151
if (! Builder::hasMacro($name)) {
5252
Builder::macro($name, function () use ($class) {
53+
/** @var Builder $this */
5354
$this->callback = function ($builder, $config) use ($class) {
5455
return new $class($builder->query, $config);
5556
};

0 commit comments

Comments
 (0)