Skip to content

Commit

Permalink
Merge pull request #42 from gregorg/master
Browse files Browse the repository at this point in the history
fix error: MasterSlavesConnection::setSlaveStatus() must be of the ty…
  • Loading branch information
gregorg authored Dec 21, 2017
2 parents c763ac2 + 320450c commit eb78161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/Connection/MasterSlavesConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private function getCacheKey() {
return "MasterSlavesConnection_".strtr(serialize($this->currentConnectionParams), '{}()/@:', '______|');
}

public function setSlaveStatus(bool $running, int $delay) {
public function setSlaveStatus(bool $running, ?int $delay) {
if ($this->hasCache()) {
$this->cache->setCacheItem($this->getCacheKey(), ["running" => $running, "delay" => $delay], $this->slaveStatusCacheTtl);
}
Expand Down

0 comments on commit eb78161

Please sign in to comment.