File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,12 @@ class Connection extends AbstractConnection
3939 private bool $ bound = false ;
4040 private ?LDAPConnection $ connection = null ;
4141
42- public function __sleep (): array
42+ public function __serialize (): array
4343 {
4444 throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
4545 }
4646
47- /**
48- * @return void
49- */
50- public function __wakeup ()
47+ public function __unserialize (array $ data ): void
5148 {
5249 throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
5350 }
Original file line number Diff line number Diff line change @@ -30,15 +30,12 @@ class Query extends AbstractQuery
3030
3131 private array $ serverctrls = [];
3232
33- public function __sleep (): array
33+ public function __serialize (): array
3434 {
3535 throw new \BadMethodCallException ('Cannot serialize ' .__CLASS__ );
3636 }
3737
38- /**
39- * @return void
40- */
41- public function __wakeup ()
38+ public function __unserialize (array $ data ): void
4239 {
4340 throw new \BadMethodCallException ('Cannot unserialize ' .__CLASS__ );
4441 }
You can’t perform that action at this time.
0 commit comments