Skip to content

Commit c116a57

Browse files
committed
:octocat: declare strict types
1 parent dd9dd46 commit c116a57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+99
-29
lines changed

src/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/DatabaseAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/DatabaseException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/DatabaseOptions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/DatabaseOptionsTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/Dialects/Dialect.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/DialectAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/Firebird.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/MSSQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/MySQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/Postgres.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Dialects/SQLite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @copyright 2018 Smiley
1010
* @license MIT
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Dialects;
1415

src/Drivers/DriverAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Drivers;
1213

src/Drivers/DriverException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Drivers;
1213

src/Drivers/DriverInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Drivers;
1213

src/Drivers/MSSqlSrv.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/MySQLiDrv.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/PDODriverAbstract.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

1516
use chillerlan\Database\Result;
16-
use Closure;
17-
use PDO, PDOStatement, Throwable;
18-
17+
use Closure, PDO, PDOStatement, Throwable;
1918
use function gettype, is_bool;
2019

2120
/**

src/Drivers/PDOFirebird.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/PDOMSSqlSrv.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/PDOMySQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/PDOPostgreSQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

1516
use chillerlan\Database\Dialects\{Dialect, Postgres};
16-
1717
use function is_numeric, sodium_bin2hex;
1818

1919
/**

src/Drivers/PDOSQLite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Drivers/PostgreSQL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpComposerExtensionStubsInspection
1111
*/
12+
declare(strict_types=1);
1213

1314
namespace chillerlan\Database\Drivers;
1415

src/Dumper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/MonologHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database;
1213

src/Query/Alter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/AlterDatabase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/AlterTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/BindValues.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/CachedQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Create.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/CreateDatabase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/CreateTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Delete.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Drop.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/DropDatabase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/DropTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/IfExists.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/IfNotExists.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Insert.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Limit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/MultiQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Query.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/QueryException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Select.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2017 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/Show.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2018 Smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

src/Query/ShowCreateTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @copyright 2021 smiley
88
* @license MIT
99
*/
10+
declare(strict_types=1);
1011

1112
namespace chillerlan\Database\Query;
1213

0 commit comments

Comments
 (0)