Skip to content

Commit b6e48c2

Browse files
Change type explicitly
1 parent 648dbfd commit b6e48c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Backup/Source/Ldapdump.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Ldapdump extends SimulatorExecutable implements Simulator
7777
private $password;
7878

7979
/**
80-
* Filter
80+
* Filter
8181
* <filter>
8282
*
8383
* @var string $filter
@@ -156,12 +156,11 @@ protected function createExecutable(Target $target) : Executable
156156
$executable
157157
->credentials($this->bindDn, $this->password)
158158
->useHost($this->host)
159-
->usePort($this->port)
159+
->usePort((int) $this->port)
160160
->useSearchBase($this->searchBase)
161161
->useFilter($this->filter)
162162
->useAttributes($this->attrs)
163163
->dumpTo($this->getDumpTarget($target));
164-
;
165164
// if compression is active and commands can be piped
166165
if ($this->isHandlingCompression($target)) {
167166
$executable->compressOutput($target->getCompression());

0 commit comments

Comments
 (0)