* @return ConnectionInterface
public function connect();
Pgsql connection returns nothing..
* Connect to the database
* @return void
* @throws Exception\RuntimeException on failure
public function connect()
While interfaces can indicate via the docblock what they expect an implementation to return, this is not binding. I would always check to see what the given implementation defines in its own docblock.
In looking through the various concrete implementations, some return the connection, some do not; in some cases, what is returned is based on what occurs within the internals of the implementation within logic branches.
Considering this would be defining a fluent interface at best, I'm not sure it's important. If you feel it is, please feel free to submit a pull request that makes the behavior consistent across the various implementations.
Re-opening after discussion with @Maks3w
What should likely happen is one of the following:
I suggest implement the fluent interface for preserve the backward compatibility.
@Mech7 If you want send a contribution for fix this.