phpstan appeasement

This commit is contained in:
MarkBaker 2021-06-03 19:31:22 +02:00 committed by Mark Baker
parent f135da0b11
commit 883115a079
2 changed files with 7 additions and 5 deletions

View File

@ -9,22 +9,22 @@ use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
class StringValueBinder implements IValueBinder class StringValueBinder implements IValueBinder
{ {
/** /**
* @var bool $convertNull * @var bool
*/ */
protected $convertNull = true; protected $convertNull = true;
/** /**
* @var bool $convertBoolean * @var bool
*/ */
protected $convertBoolean = true; protected $convertBoolean = true;
/** /**
* @var bool $convertNumeric * @var bool
*/ */
protected $convertNumeric = true; protected $convertNumeric = true;
/** /**
* @var bool $convertFormula * @var bool
*/ */
protected $convertFormula = true; protected $convertFormula = true;

View File

@ -15,8 +15,10 @@ class StringValueBinderTest extends TestCase
{ {
/** /**
* @param mixed $expectedValue * @param mixed $expectedValue
*
* @return Cell&MockObject
*/ */
protected function createCellStub($expectedValue, string $expectedDataType, bool $quotePrefix = false): Cell protected function createCellStub($expectedValue, string $expectedDataType, bool $quotePrefix = false): MockObject
{ {
/** @var Style&MockObject $styleStub */ /** @var Style&MockObject $styleStub */
$styleStub = $this->getMockBuilder(Style::class) $styleStub = $this->getMockBuilder(Style::class)