mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore(teamcity): static analysis fix
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
|
||||
use Rector\Set\ValueObject\SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
@ -27,5 +28,8 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
SetList::SOLID,
|
||||
]);
|
||||
|
||||
$parameters->set(Option::PATHS, [__DIR__.'/src', __DIR__.'/tests']);
|
||||
$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']);
|
||||
$parameters->set(Option::EXCLUDE_RECTORS, [
|
||||
StaticCallOnNonStaticToInstanceCallRector::class,
|
||||
]);
|
||||
};
|
||||
|
||||
@ -14,6 +14,7 @@ use PHPUnit\Framework\Warning;
|
||||
use PHPUnit\TextUI\DefaultResultPrinter;
|
||||
use function round;
|
||||
use function str_replace;
|
||||
use Throwable;
|
||||
|
||||
final class TeamCity extends DefaultResultPrinter
|
||||
{
|
||||
@ -146,7 +147,7 @@ final class TeamCity extends DefaultResultPrinter
|
||||
/**
|
||||
* @param Test|TestCase $test
|
||||
*/
|
||||
public function addError(Test $test, \Throwable $t, float $time): void
|
||||
public function addError(Test $test, Throwable $t, float $time): void
|
||||
{
|
||||
if (!TeamCity::isPestTest($test)) {
|
||||
$this->phpunitTeamCity->addError($test, $t, $time);
|
||||
|
||||
Reference in New Issue
Block a user