File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,9 @@ protected function serialize($value)
488
488
{
489
489
$ result = serialize ($ value );
490
490
491
- if (($ this ->connection instanceof PostgresConnection || $ this ->connection instanceof SQLiteConnection) && str_contains ($ result , "\0" )) {
491
+ if (($ this ->connection instanceof PostgresConnection ||
492
+ $ this ->connection instanceof SQLiteConnection) &&
493
+ str_contains ($ result , "\0" )) {
492
494
$ result = base64_encode ($ result );
493
495
}
494
496
@@ -503,7 +505,9 @@ protected function serialize($value)
503
505
*/
504
506
protected function unserialize ($ value )
505
507
{
506
- if (($ this ->connection instanceof PostgresConnection || $ this ->connection instanceof SQLiteConnection) && ! Str::contains ($ value , [': ' , '; ' ])) {
508
+ if (($ this ->connection instanceof PostgresConnection ||
509
+ $ this ->connection instanceof SQLiteConnection) &&
510
+ ! Str::contains ($ value , [': ' , '; ' ])) {
507
511
$ value = base64_decode ($ value );
508
512
}
509
513
You can’t perform that action at this time.
0 commit comments