fix recursion

This commit is contained in:
Robin Appelman 2021-03-09 21:13:12 +01:00
commit 037efdcfb5
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ class Share extends AbstractShare {
* @psalm-assert Connection $this->connection
*/
protected function connect(): Connection {
if ($this->connection and $this->connect()->isValid()) {
if ($this->connection and $this->connection->isValid()) {
return $this->connection;
}
$this->connection = $this->getConnection();