Skip to content

Commit

Permalink
fix docblock of database component (#42182)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 authored May 2, 2022
1 parent fe01076 commit 64a5df1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Connection implements ConnectionInterface
/**
* All of the callbacks that should be invoked before a query is executed.
*
* @var array
* @var \Closure[]
*/
protected $beforeExecutingCallbacks = [];

Expand All @@ -181,14 +181,14 @@ class Connection implements ConnectionInterface
/**
* Type mappings that should be registered with new Doctrine connections.
*
* @var array
* @var array<string, string>
*/
protected $doctrineTypeMappings = [];

/**
* The connection resolvers.
*
* @var array
* @var \Closure[]
*/
protected static $resolvers = [];

Expand Down
4 changes: 2 additions & 2 deletions ConnectionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ConnectionResolver implements ConnectionResolverInterface
/**
* All of the registered connections.
*
* @var array
* @var \Illuminate\Database\ConnectionInterface[]
*/
protected $connections = [];

Expand All @@ -21,7 +21,7 @@ class ConnectionResolver implements ConnectionResolverInterface
/**
* Create a new connection resolver instance.
*
* @param array $connections
* @param array<string, \Illuminate\Database\ConnectionInterface> $connections
* @return void
*/
public function __construct(array $connections = [])
Expand Down
12 changes: 6 additions & 6 deletions DatabaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class DatabaseManager implements ConnectionResolverInterface
/**
* The active connection instances.
*
* @var array
* @var array<string, \Illuminate\Database\Connection>
*/
protected $connections = [];

/**
* The custom connection resolvers.
*
* @var array
* @var array<string, callable>
*/
protected $extensions = [];

Expand All @@ -59,7 +59,7 @@ class DatabaseManager implements ConnectionResolverInterface
/**
* The custom Doctrine column types.
*
* @var array
* @var array<string, array>
*/
protected $doctrineTypes = [];

Expand Down Expand Up @@ -369,7 +369,7 @@ public function setDefaultConnection($name)
/**
* Get all of the support drivers.
*
* @return array
* @return string[]
*/
public function supportedDrivers()
{
Expand All @@ -379,7 +379,7 @@ public function supportedDrivers()
/**
* Get all of the drivers that are actually available.
*
* @return array
* @return string[]
*/
public function availableDrivers()
{
Expand Down Expand Up @@ -415,7 +415,7 @@ public function forgetExtension($name)
/**
* Return all of the created connections.
*
* @return array
* @return array<string, \Illuminate\Database\Connection>
*/
public function getConnections()
{
Expand Down

0 comments on commit 64a5df1

Please sign in to comment.