tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
773 stars 31 forks source link

Broken since laravel v11.17.0 #89

Closed mstaack closed 3 months ago

mstaack commented 4 months ago

just experienced a bug / interface-mismatch during upgrade:

laravel/framework (v11.16.0 => v11.17.0) tpetry/laravel-postgresql-enhanced 0.40.2

   Symfony\Component\ErrorHandler\Error\FatalError

  Declaration of Tpetry\PostgresqlEnhanced\Query\BuilderWhere::orWhereLike($column, $value, bool $caseInsensitive = false): static must be compatible with Illuminate\Database\Query\Builder::orWhereLike($column, $value, $caseSensitive = false)

  at vendor/tpetry/laravel-postgresql-enhanced/src/Query/BuilderWhere.php:67
     63▕      *
     64▕      * @param Expression|string $column
     65▕      * @param Expression|string $value
     66▕      */
  ➜  67▕     public function orWhereLike($column, $value, bool $caseInsensitive = false): static
     68▕     {
     69▕         return $this->whereLike($column, $value, $caseInsensitive, 'or');
     70▕     }
     71▕

   Whoops\Exception\ErrorException

  Declaration of Tpetry\PostgresqlEnhanced\Query\BuilderWhere::orWhereLike($column, $value, bool $caseInsensitive = false): static must be compatible with Illuminate\Database\Query\Builder::orWhereLike($column, $value, $caseSensitive = false)

  at vendor/tpetry/laravel-postgresql-enhanced/src/Query/BuilderWhere.php:67
     63▕      *
     64▕      * @param Expression|string $column
     65▕      * @param Expression|string $value
     66▕      */
  ➜  67▕     public function orWhereLike($column, $value, bool $caseInsensitive = false): static
     68▕     {
     69▕         return $this->whereLike($column, $value, $caseInsensitive, 'or');
     70▕     }
     71▕

      +1 vendor frames

  2   [internal]:0
      Whoops\Run::handleShutdown()
tpetry commented 3 months ago

This is now fixed with version 1.0.0.