fix phpstan level 2 and below issues
This commit is contained in:
parent
ff0784ce46
commit
c8ca412c14
@ -86,7 +86,7 @@ abstract class AbstractResponse extends ApiTestCase
|
|||||||
*/
|
*/
|
||||||
protected function checkProperties($expected, $propertyName, $methodName)
|
protected function checkProperties($expected, $propertyName, $methodName)
|
||||||
{
|
{
|
||||||
/** @var Response $response */
|
/** @var Response|MockObject $responseMock */
|
||||||
$responseMock = $this->getMockBuilder($this->testClassName)
|
$responseMock = $this->getMockBuilder($this->testClassName)
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->onlyMethods(['getContent'])
|
->onlyMethods(['getContent'])
|
||||||
|
@ -29,7 +29,7 @@ use ReflectionException;
|
|||||||
|
|
||||||
class SenderTest extends ApiTestCase
|
class SenderTest extends ApiTestCase
|
||||||
{
|
{
|
||||||
/** @var Sender */
|
/** @var Sender|MockObject */
|
||||||
public $sender;
|
public $sender;
|
||||||
|
|
||||||
private $phoneNumberFixture;
|
private $phoneNumberFixture;
|
||||||
@ -48,7 +48,6 @@ class SenderTest extends ApiTestCase
|
|||||||
$example = $phoneUtil->getExampleNumberForType($this->phoneCountryFixture, PhoneNumberType::MOBILE);
|
$example = $phoneUtil->getExampleNumberForType($this->phoneCountryFixture, PhoneNumberType::MOBILE);
|
||||||
$this->phoneNumberFixture = $phoneUtil->format($example, PhoneNumberFormat::NATIONAL);
|
$this->phoneNumberFixture = $phoneUtil->format($example, PhoneNumberFormat::NATIONAL);
|
||||||
|
|
||||||
/** @var Sender|MockObject sender */
|
|
||||||
$this->sender = new Sender($this->phoneNumberFixture, $this->phoneCountryFixture);
|
$this->sender = new Sender($this->phoneNumberFixture, $this->phoneCountryFixture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,11 +26,13 @@ use ReflectionException;
|
|||||||
|
|
||||||
class ValueObjectTest extends ApiTestCase
|
class ValueObjectTest extends ApiTestCase
|
||||||
{
|
{
|
||||||
|
/** @var ValueObject|MockObject */
|
||||||
|
public $value;
|
||||||
|
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
/** @var ValueObject|MockObject value */
|
|
||||||
$this->value = $this->getMockBuilder(ValueObject::class)
|
$this->value = $this->getMockBuilder(ValueObject::class)
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
@ -2,5 +2,5 @@ parameters:
|
|||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
- Tests
|
- Tests
|
||||||
level: 0
|
level: 2
|
||||||
phpVersion: 70300
|
phpVersion: 70300
|
||||||
|
@ -38,7 +38,7 @@ class LoggerHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $logger
|
* @param LoggerInterface $logger
|
||||||
*/
|
*/
|
||||||
public function setLogger(LoggerInterface $logger)
|
public function setLogger(LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
|
@ -422,7 +422,7 @@ abstract class Request implements RequestInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool|null
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function doSendAsFlashSms(): bool
|
public function doSendAsFlashSms(): bool
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user