Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b963e49

Browse files
authored
add return types
1 parent 5ffd426 commit b963e49

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/Symfony/Component/Cache/Tests/Fixtures/DriverWrapper.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Doctrine\DBAL\Connection;
1515
use Doctrine\DBAL\Driver;
1616
use Doctrine\DBAL\Platforms\AbstractPlatform;
17+
use Doctrine\DBAL\Schema\AbstractSchemaManager;
1718

1819
class DriverWrapper implements Driver
1920
{
@@ -25,26 +26,17 @@ public function __construct(Driver $driver)
2526
$this->driver = $driver;
2627
}
2728

28-
/**
29-
* @return Driver\Connection
30-
*/
31-
public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
29+
public function connect(array $params, $username = null, $password = null, array $driverOptions = []): Driver\Connection
3230
{
3331
return $this->driver->connect($params, $username, $password, $driverOptions);
3432
}
3533

36-
/**
37-
* @return \Doctrine\DBAL\Platforms\AbstractPlatform
38-
*/
39-
public function getDatabasePlatform()
34+
public function getDatabasePlatform(): AbstractPlatform
4035
{
4136
return $this->driver->getDatabasePlatform();
4237
}
4338

44-
/**
45-
* @return \Doctrine\DBAL\Schema\AbstractSchemaManager
46-
*/
47-
public function getSchemaManager(Connection $conn, AbstractPlatform $platform)
39+
public function getSchemaManager(Connection $conn, AbstractPlatform $platform): AbstractSchemaManager
4840
{
4941
return $this->driver->getSchemaManager($conn, $platform);
5042
}

0 commit comments

Comments
 (0)