File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function setGoneAwayDetector(GoneAwayDetector $goneAwayDetector): void
86
86
*
87
87
* @return R
88
88
*/
89
- private function doWithRetry (callable $ callable , string $ sql = null )
89
+ private function doWithRetry (callable $ callable , ? string $ sql = null )
90
90
{
91
91
try {
92
92
attempt:
@@ -187,7 +187,7 @@ public function beginTransaction(): void
187
187
$ this ->currentlyOpeningFirstLevelTransaction = false ;
188
188
}
189
189
190
- public function canTryAgain (\Throwable $ throwable , string $ sql = null ): bool
190
+ public function canTryAgain (\Throwable $ throwable , ? string $ sql = null ): bool
191
191
{
192
192
if ($ this ->hasBeenClosedWithAnOpenTransaction && ! $ this ->currentlyOpeningFirstLevelTransaction ) {
193
193
return false ;
Original file line number Diff line number Diff line change 4
4
5
5
interface GoneAwayDetector
6
6
{
7
- public function isGoneAwayException (\Throwable $ exception , string $ sql = null ): bool ;
7
+ public function isGoneAwayException (\Throwable $ exception , ? string $ sql = null ): bool ;
8
8
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class MySQLGoneAwayDetector implements GoneAwayDetector
17
17
'Error while sending QUERY packet ' ,
18
18
];
19
19
20
- public function isGoneAwayException (\Throwable $ exception , string $ sql = null ): bool
20
+ public function isGoneAwayException (\Throwable $ exception , ? string $ sql = null ): bool
21
21
{
22
22
if ($ this ->isSavepoint ($ sql )) {
23
23
return false ;
You can’t perform that action at this time.
0 commit comments