Skip to content

Access to an undefined property in PostgresEngineServiceProvider #3

Closed
@devNoiseConsulting

Description

@devNoiseConsulting

larastan/phpstan is giving the following error for PostgresEngineServiceProvider.php

 ------ -------------------------------------------------------------------------------------------------
  Line   PostgresEngineServiceProvider.php
 ------ -------------------------------------------------------------------------------------------------
  56     Access to an undefined property ScoutEngines\Postgres\PostgresEngineServiceProvider::$callback.
 ------ -------------------------------------------------------------------------------------------------

So the problem code is as follows:

            Builder::macro($name, function () use ($class) {
                $this->callback = function ($builder, $config) use ($class) {
                    return new $class($builder->query, $config);
                };

                return $this;
            });

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions