Merge pull request #2129 from rectorphp/reserver

cleanup
This commit is contained in:
Tomáš Votruba 2019-10-10 12:16:13 +01:00 committed by GitHub
commit 7bf76c92ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions

View File

@ -21,7 +21,6 @@
"phpstan/phpdoc-parser": "^0.3.5",
"phpstan/phpstan": "^0.11.13",
"phpstan/phpstan-phpunit": "^0.11.2",
"ramsey/uuid": "^3.8",
"sebastian/diff": "^3.0",
"symfony/console": "^3.4|^4.2",
"symfony/dependency-injection": "^3.4|^4.2",

View File

@ -0,0 +1,10 @@
<?php declare(strict_types=1);
if (class_exists('PHPUnit_Framework_TestCase')) {
return;
}
abstract class PHPUnit_Framework_TestCase
{
}

View File

@ -6,7 +6,16 @@ if (class_exists('Ramsey\Uuid\Uuid')) {
return;
}
class Uuid
class Uuid implements UuidInterface
{
public static function uuid4(): self
{
return new Uuid();
}
public function toString()
{
// dummy value
return '4398dda9-3bc0-45ec-ae81-3d81a86ad84a';
}
}