Skip to content

Commit 5e04f05

Browse files
Merge pull request #243 from moebrowne
Removes PHP7.4 Feature Usage
2 parents 2c90854 + dd3bf46 commit 5e04f05

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/Cli/Executable/Rsync/Location.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ public function toString()
9191
* Magic to string method
9292
*
9393
* @return string
94-
* @throws \phpbu\App\Exception
9594
*/
9695
public function __toString()
9796
{
98-
if (!$this->isValid()) {
99-
throw new Exception('invalid rsync path');
100-
}
10197
$return = '';
10298
if (!empty($this->host)) {
10399
// remote user

tests/phpbu/Cli/Executable/Rsync/LocationTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@
1414
*/
1515
class LocationTest extends \PHPUnit\Framework\TestCase
1616
{
17-
/**
18-
* Tests Rsync::toString
19-
*/
20-
public function testEmptyOnInit()
21-
{
22-
$this->expectException('phpbu\App\Exception');
23-
$location = new Location();
24-
$location->toString();
25-
}
26-
2717
/**
2818
* Tests Rsync::toString
2919
*/

0 commit comments

Comments
 (0)