From 984f237a928042937b6a9575e964b0e575753d35 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Thu, 3 Mar 2022 15:45:41 +0100 Subject: [PATCH] phpstan --- src/Actions/LoadStructure.php | 1 + src/Logging/JUnit.php | 2 -- src/Logging/TeamCity.php | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Actions/LoadStructure.php b/src/Actions/LoadStructure.php index 5cae76aa..0aafee88 100644 --- a/src/Actions/LoadStructure.php +++ b/src/Actions/LoadStructure.php @@ -50,6 +50,7 @@ final class LoadStructure $directory = new RecursiveDirectoryIterator($filename); $iterator = new RecursiveIteratorIterator($directory); foreach ($iterator as $file) { + /* @phpstan-ignore-next-line */ $filename = $file->__toString(); if (Str::endsWith($filename, '.php') && file_exists($filename)) { require_once $filename; diff --git a/src/Logging/JUnit.php b/src/Logging/JUnit.php index 211996da..61e19a89 100644 --- a/src/Logging/JUnit.php +++ b/src/Logging/JUnit.php @@ -173,7 +173,6 @@ final class JUnit extends Printer implements TestListener $this->doAddSkipped(); } - /** @phpstan-ignore-next-line */ public function startTestSuite(TestSuite $suite): void { $testSuite = $this->document->createElement('testsuite'); @@ -212,7 +211,6 @@ final class JUnit extends Printer implements TestListener $this->testSuiteTimes[$this->testSuiteLevel] = 0; } - /** @phpstan-ignore-next-line */ public function endTestSuite(TestSuite $suite): void { $this->testSuites[$this->testSuiteLevel]->setAttribute( diff --git a/src/Logging/TeamCity.php b/src/Logging/TeamCity.php index bfd732fb..d1dfe271 100644 --- a/src/Logging/TeamCity.php +++ b/src/Logging/TeamCity.php @@ -106,7 +106,6 @@ final class TeamCity extends DefaultResultPrinter - $result->riskyCount(); } - /** @phpstan-ignore-next-line */ public function startTestSuite(TestSuite $suite): void { $suiteName = $suite->getName(); @@ -164,7 +163,6 @@ final class TeamCity extends DefaultResultPrinter ); } - /** @phpstan-ignore-next-line */ public function endTestSuite(TestSuite $suite): void { $suiteName = $suite->getName();