Skip to content

Commit 7e8f134

Browse files
gbirkeAbban
authored andcommitted
Update PHPStan
The PHPStan versions on Travis and composer had gotten out of sync with the major release of PHPStan 1.0
1 parent 8ca94f5 commit 7e8f134

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"symfony/cache": "^5.3",
1515
"wmde/fundraising-phpcs": "~5.0",
1616
"phpmd/phpmd": "~2.6",
17-
"phpstan/phpstan": "^0.12",
18-
"phpstan/phpstan-phpunit": "^0.12"
17+
"phpstan/phpstan": "^1.2",
18+
"phpstan/phpstan-phpunit": "^1.0"
1919
},
2020
"repositories": [
2121
{

tests/Unit/DataAccess/DoctrineAddressChangeRepositoryTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
class DoctrineAddressChangeRepositoryTest extends TestCase {
2020

2121
private const VALID_UPDATE_TOKEN_PERSONAL_DONATION = '2a54c0a1-fc94-4ef8-8b0a-7c2ed8565521';
22-
private const VALID_UPDATE_TOKEN_PERSONAL_MEMBERSHIP = 'ce4449f9-8317-41fa-acc3-4a878e26845d';
2322
private const VALID_UPDATE_TOKEN_COMPANY_DONATION = 'c52258ba-fed1-476a-a7e5-c721df087c12';
24-
private const VALID_UPDATE_TOKEN_COMPANY_MEMBERSHIP = '8d11d2ba-5ec5-4ec8-a08c-0ac7b8654b59';
2523
private const INVALID_UPDATE_TOKEN = '72dfed91-fa40-4af0-9e80-c6010ab29cd1';
2624
private const DUMMY_DONATION_ID = 0;
2725

tests/Unit/Domain/Model/AddressChangeTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\Domain\Model;
66

7-
use Doctrine\ORM\EntityManager;
87
use PHPUnit\Framework\TestCase;
98
use WMDE\Fundraising\AddressChangeContext\Domain\Model\AddressChange;
109
use WMDE\Fundraising\AddressChangeContext\Domain\Model\AddressChangeId;
1110
use WMDE\Fundraising\AddressChangeContext\Tests\Data\ValidAddress;
12-
use WMDE\Fundraising\AddressChangeContext\Tests\TestEnvironment;
1311

1412
/**
1513
* @covers \WMDE\Fundraising\AddressChangeContext\Domain\Model\AddressChange
@@ -18,12 +16,10 @@ class AddressChangeTest extends TestCase {
1816

1917
private const DUMMY_DONATION_ID = 0;
2018

21-
private EntityManager $entityManager;
2219
private AddressChangeId $identifier;
2320
private AddressChangeId $newIdentifier;
2421

2522
public function setUp(): void {
26-
$this->entityManager = TestEnvironment::newInstance()->getEntityManager();
2723
$this->identifier = AddressChangeId::fromString( 'c956688a-89e8-41b7-b93e-7e4cf3d6c826' );
2824
$this->newIdentifier = AddressChangeId::fromString( 'e0c4db0b-9049-462c-8c76-c4f6a3a75091' );
2925
}

0 commit comments

Comments
 (0)