File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ public function transactionLevel(): int
84
84
85
85
/**
86
86
* Create a transaction within the database.
87
+ *
88
+ * @throws Throwable
87
89
*/
88
90
protected function createTransaction (): void
89
91
{
@@ -101,7 +103,7 @@ protected function createTransaction(): void
101
103
/**
102
104
* Create a save point within the database.
103
105
*/
104
- protected function createSavepoint ()
106
+ protected function createSavepoint (): void
105
107
{
106
108
$ this ->exec (
107
109
$ this ->compileSavepoint ('trans ' . ($ this ->transactions + 1 ))
@@ -113,7 +115,7 @@ protected function createSavepoint()
113
115
*
114
116
* @throws Throwable
115
117
*/
116
- protected function handleBeginTransactionException (Throwable $ e )
118
+ protected function handleBeginTransactionException (Throwable $ e ): void
117
119
{
118
120
if ($ this ->causedByLostConnection ($ e )) {
119
121
$ this ->reconnect ();
@@ -127,7 +129,7 @@ protected function handleBeginTransactionException(Throwable $e)
127
129
/**
128
130
* Perform a rollback within the database.
129
131
*/
130
- protected function performRollBack (int $ toLevel )
132
+ protected function performRollBack (int $ toLevel ): void
131
133
{
132
134
if ($ toLevel == 0 ) {
133
135
$ this ->call ('rollBack ' );
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ protected function buildDsn(array $config): string
207
207
/**
208
208
* Configure the connection character set and collation.
209
209
*/
210
- protected function configureCharset (PDO $ connection , array $ config )
210
+ protected function configureCharset (PDO $ connection , array $ config ): void
211
211
{
212
212
if (isset ($ config ['charset ' ])) {
213
213
$ connection ->prepare (sprintf ("set names '%s'%s " , $ config ['charset ' ], $ this ->getCollation ($ config )))->execute ();
You can’t perform that action at this time.
0 commit comments