Skip to content

Commit

Permalink
fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockedPlot7560 committed Dec 18, 2023
1 parent 4774868 commit ef33e80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/framework/result/printer/TestResultsBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class TestResultsBag {
/** @var SuccessTest[] $passedTests */
private array $passedTests = [];

/**
* @param TestResult[] $testResults
*/
/**
* @param TestResult[] $testResults
*/
public function __construct(
private array $testResults
) {
Expand Down Expand Up @@ -98,9 +98,9 @@ public function getFatalRate() : float {
return round(count($this->fatalErrors) / count($this->testResults) * 100, 2);
}

/**
* @return TestResult[]
*/
/**
* @return TestResult[]
*/
public function getAllErrors() : array {
return array_merge($this->failedTests, $this->fatalErrors);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
use ShockedPlot7560\PmmpUnit\framework\TestCase;

class PromiseRejectionNotHandledTest extends TestCase {
/** @phpstan-return PromiseInterface<null> */
/**
* @phpstan-return PromiseInterface<null>
*/
public function testPromiseRejectedToException() : PromiseInterface {
$this->expectException(Exception::class);

Expand Down

0 comments on commit ef33e80

Please sign in to comment.