Skip to content

Commit 6181142

Browse files
fix docblock of database component (#42182)
1 parent ad18afc commit 6181142

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/Illuminate/Database/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class Connection implements ConnectionInterface
167167
/**
168168
* All of the callbacks that should be invoked before a query is executed.
169169
*
170-
* @var array
170+
* @var \Closure[]
171171
*/
172172
protected $beforeExecutingCallbacks = [];
173173

@@ -181,14 +181,14 @@ class Connection implements ConnectionInterface
181181
/**
182182
* Type mappings that should be registered with new Doctrine connections.
183183
*
184-
* @var array
184+
* @var array<string, string>
185185
*/
186186
protected $doctrineTypeMappings = [];
187187

188188
/**
189189
* The connection resolvers.
190190
*
191-
* @var array
191+
* @var \Closure[]
192192
*/
193193
protected static $resolvers = [];
194194

src/Illuminate/Database/ConnectionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ConnectionResolver implements ConnectionResolverInterface
77
/**
88
* All of the registered connections.
99
*
10-
* @var array
10+
* @var \Illuminate\Database\ConnectionInterface[]
1111
*/
1212
protected $connections = [];
1313

@@ -21,7 +21,7 @@ class ConnectionResolver implements ConnectionResolverInterface
2121
/**
2222
* Create a new connection resolver instance.
2323
*
24-
* @param array $connections
24+
* @param array<string, \Illuminate\Database\ConnectionInterface> $connections
2525
* @return void
2626
*/
2727
public function __construct(array $connections = [])

src/Illuminate/Database/DatabaseManager.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class DatabaseManager implements ConnectionResolverInterface
3838
/**
3939
* The active connection instances.
4040
*
41-
* @var array
41+
* @var array<string, \Illuminate\Database\Connection>
4242
*/
4343
protected $connections = [];
4444

4545
/**
4646
* The custom connection resolvers.
4747
*
48-
* @var array
48+
* @var array<string, callable>
4949
*/
5050
protected $extensions = [];
5151

@@ -59,7 +59,7 @@ class DatabaseManager implements ConnectionResolverInterface
5959
/**
6060
* The custom Doctrine column types.
6161
*
62-
* @var array
62+
* @var array<string, array>
6363
*/
6464
protected $doctrineTypes = [];
6565

@@ -369,7 +369,7 @@ public function setDefaultConnection($name)
369369
/**
370370
* Get all of the support drivers.
371371
*
372-
* @return array
372+
* @return string[]
373373
*/
374374
public function supportedDrivers()
375375
{
@@ -379,7 +379,7 @@ public function supportedDrivers()
379379
/**
380380
* Get all of the drivers that are actually available.
381381
*
382-
* @return array
382+
* @return string[]
383383
*/
384384
public function availableDrivers()
385385
{
@@ -415,7 +415,7 @@ public function forgetExtension($name)
415415
/**
416416
* Return all of the created connections.
417417
*
418-
* @return array
418+
* @return array<string, \Illuminate\Database\Connection>
419419
*/
420420
public function getConnections()
421421
{

0 commit comments

Comments
 (0)