Skip to content

Commit

Permalink
Drop the Serializable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
anokhinAleksey authored and mrVrAlex committed Mar 15, 2022
1 parent a0734b5 commit 4f0d407
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Swoole/PgSQL/DownscaleableConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace OpsWay\Doctrine\DBAL\Swoole\PgSQL;

use Serializable;
use Swoole\Timer;
use Swoole\ConnectionPool;
use Swoole\Coroutine as Co;
Expand All @@ -14,7 +13,7 @@
use function array_filter;

/** @psalm-suppress MissingDependency, UndefinedClass */
class DownscaleableConnectionPool extends ConnectionPool implements ConnectionPullInterface, Serializable
class DownscaleableConnectionPool extends ConnectionPool implements ConnectionPullInterface
{
private const DEFAULT_POOL_SIZE = 8;
private const DOWNSCALE_TICK_FREQUENCY = 36000000; // 1 hour in milliseconds
Expand Down Expand Up @@ -153,15 +152,15 @@ public function downscale() : void
*
* @see vendor/doctrine/dbal/src/Cache/QueryCacheProfile.php:127
*/
public function serialize() : ?string
public function __serialize() : array
{
return null;
return [];
}

/**
* @param string $data
*/
public function unserialize($data) : void
public function __unserialize($data) : void
{
// Do nothing
}
Expand Down

0 comments on commit 4f0d407

Please sign in to comment.