Skip to content

Commit 700a0a8

Browse files
authored
Improve typehint for Model::getConnectionResolver() (#47749)
static::$resolver can be null, either before Model::setConnectionResolver() is called or after Model::unsetConnectionResolver() is called.
1 parent bdcee6f commit 700a0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ public static function resolveConnection($connection = null)
18211821
/**
18221822
* Get the connection resolver instance.
18231823
*
1824-
* @return \Illuminate\Database\ConnectionResolverInterface
1824+
* @return \Illuminate\Database\ConnectionResolverInterface|null
18251825
*/
18261826
public static function getConnectionResolver()
18271827
{

0 commit comments

Comments
 (0)