Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 374dd62

Browse files
authored
Merge pull request #30 from fishfacemcgee/static-fixes
PHP Syntax Fixes
2 parents 327b4b7 + fdf2391 commit 374dd62

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Constraint/CrawlerNot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure
3131
);
3232
}
3333

34-
public function toString()
34+
public function toString() : string
3535
{
3636
if ($this->string) {
3737
return 'that contains text "' . $this->string . '"';

src/Constraint/JsonContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function matches($other) : bool
5656
*
5757
* @return string
5858
*/
59-
public function toString()
59+
public function toString() : string
6060
{
6161
//unused
6262
return '';

src/Constraint/JsonType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function matches($jsonArray) : bool
5050
*
5151
* @return string
5252
*/
53-
public function toString()
53+
public function toString() : string
5454
{
5555
//unused
5656
return '';

src/Constraint/WebDriverNot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure
3232
);
3333
}
3434

35-
public function toString()
35+
public function toString() : string
3636
{
3737
if ($this->string) {
3838
return 'that contains text "' . $this->string . '"';

src/ResultPrinter/UI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function printDefectTrace(\PHPUnit\Framework\TestFailure $defect): voi
3737
$this->write($defect->getExceptionAsString());
3838
$this->writeNewLine();
3939

40-
$stackTrace = \PHPUnit\Util\Filter::getFilteredStacktrace($defect->thrownException(), false);
40+
$stackTrace = \PHPUnit\Util\Filter::getFilteredStacktrace($defect->thrownException());
4141

4242
foreach ($stackTrace as $i => $frame) {
4343
if (!isset($frame['file'])) {

0 commit comments

Comments
 (0)