Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 11, 2024
1 parent 6db83a8 commit 7c2d568
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Eloquent/Traits/BuildsAdjacencyListQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Staudenmeir\LaravelAdjacencyList\Eloquent\Traits;

use Illuminate\Database\MariaDbConnection;
use Illuminate\Database\MySqlConnection;
use Illuminate\Database\Connection;
use Illuminate\Database\PostgresConnection;
use RuntimeException;
use Staudenmeir\LaravelAdjacencyList\Query\Grammars\ExpressionGrammar;
use Staudenmeir\LaravelAdjacencyList\Query\Grammars\FirebirdGrammar;
use Staudenmeir\LaravelAdjacencyList\Query\Grammars\MariaDbGrammar;
use Staudenmeir\LaravelAdjacencyList\Query\Grammars\MySqlGrammar;
Expand Down Expand Up @@ -114,10 +114,11 @@ public function getExpressionGrammar()

/**
* Get the MySQL expression grammar.
*
* @param \Illuminate\Database\Connection $connection
* @return \Staudenmeir\LaravelAdjacencyList\Query\Grammars\ExpressionGrammar
*/
private function getMySqlExpressionGrammar($connection)
protected function getMySqlExpressionGrammar(Connection $connection): ExpressionGrammar
{
/**
* @var \Illuminate\Database\MySqlConnection $connection
Expand Down

0 comments on commit 7c2d568

Please sign in to comment.