Require phpstan and correct issues found up to level 2

* issues found by phpstan L0
* issues found by phpstan L1
* issues found by phpstan L2 in src/
* issues found by phpstan L2 in tests/
This commit is contained in:
Martin Hujer
2017-11-10 10:36:50 +01:00
committed by Ben Ramsey
parent 1eccd070c2
commit ca2629767d
23 changed files with 106 additions and 37 deletions
+7 -2
View File
@@ -2,6 +2,7 @@
namespace Ramsey\Uuid\Test\Codec;
use PHPUnit\Framework\MockObject\MockObject;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\Codec\OrderedTimeCodec;
use Ramsey\Uuid\Test\TestCase;
@@ -15,14 +16,18 @@ use Ramsey\Uuid\UuidInterface;
class OrderedTimeCodecTest extends TestCase
{
/** @var UuidBuilderInterface */
/** @var UuidBuilderInterface&MockObject */
private $builder;
/** @var UuidInterface */
/** @var UuidInterface&MockObject */
private $uuid;
/** @var array */
private $fields;
/** @var string */
private $uuidString = '58e0a7d7-eebc-11d8-9669-0800200c9a66';
/** @var string */
private $optimizedHex = '11d8eebc58e0a7d796690800200c9a66';