diff --git a/src/TeamCity.php b/src/TeamCity.php index 02e5ce8d..775a88ab 100644 --- a/src/TeamCity.php +++ b/src/TeamCity.php @@ -205,6 +205,9 @@ final class TeamCity extends DefaultResultPrinter private static function isPestTest(Test $test): bool { - return in_array(TestCase::class, class_uses($test), true); + /** @var array $uses */ + $uses = class_uses($test); + + return in_array(TestCase::class, $uses, true); } }