mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
chore(teamcity): static analysis fix
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Rector\Core\Configuration\Option;
|
use Rector\Core\Configuration\Option;
|
||||||
|
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
|
||||||
use Rector\Set\ValueObject\SetList;
|
use Rector\Set\ValueObject\SetList;
|
||||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||||
|
|
||||||
@ -27,5 +28,8 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
|||||||
SetList::SOLID,
|
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 PHPUnit\TextUI\DefaultResultPrinter;
|
||||||
use function round;
|
use function round;
|
||||||
use function str_replace;
|
use function str_replace;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
final class TeamCity extends DefaultResultPrinter
|
final class TeamCity extends DefaultResultPrinter
|
||||||
{
|
{
|
||||||
@ -146,7 +147,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
/**
|
/**
|
||||||
* @param Test|TestCase $test
|
* @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)) {
|
if (!TeamCity::isPestTest($test)) {
|
||||||
$this->phpunitTeamCity->addError($test, $t, $time);
|
$this->phpunitTeamCity->addError($test, $t, $time);
|
||||||
|
|||||||
Reference in New Issue
Block a user