mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
fix recursion
This commit is contained in:
parent
9b1c0eff3d
commit
037efdcfb5
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class ServerFactoryTest extends TestCase {
|
|||
->willReturn(false);
|
||||
$system->expects($this->any())
|
||||
->method('getSmbclientPath')
|
||||
->willReturn(false);
|
||||
->willReturn(null);
|
||||
$factory = new ServerFactory(null, $system);
|
||||
$factory->createServer('localhost', $this->credentials);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue