Skip to content

Commit df160a0

Browse files
committed
Fix post_clone method
1 parent c728760 commit df160a0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/NetworkPort.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,21 +304,13 @@ public function post_updateItem($history = true)
304304
$this->updateMetrics();
305305
}
306306

307-
/**
308-
* @param NetworkPort $source
309-
* @param bool $history
310-
*
311-
* @return false|int
312-
*/
313307
public function post_clone($source, $history)
314308
{
315309
$instantiation = $source->getInstantiation();
316310
if ($instantiation !== false) {
317311
$instantiation->fields[$instantiation->getIndexName()] = $this->getID();
318-
return $instantiation->clone([], $history);
312+
$instantiation->clone([], $history);
319313
}
320-
321-
return false;
322314
}
323315

324316
/**

0 commit comments

Comments
 (0)