Skip to content

Commit fa42d26

Browse files
Enabled PHP 5.5 and 5.6 rector rules
1 parent 6b9328d commit fa42d26

24 files changed

+46
-23
lines changed

rector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ parameters:
1414
- 'php52'
1515
- 'php53'
1616
- 'php54'
17+
- 'php55'
18+
- 'php56'
1719

1820
services:
1921
Rector\SOLID\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector: ~

test/Gitlab/Tests/Api/AbstractApiTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\AbstractApi;
56
use Gitlab\Client;
67
use Http\Client\HttpClient;
78
use PHPUnit\Framework\TestCase;
@@ -48,7 +49,7 @@ protected function getAbstractApiMock(array $methods = [])
4849
;
4950
$client = Client::createWithHttpClient($httpClient);
5051

51-
return $this->getMockBuilder('Gitlab\Api\AbstractApi')
52+
return $this->getMockBuilder(AbstractApi::class)
5253
->setConstructorArgs([
5354
$client,
5455
null,

test/Gitlab/Tests/Api/DeployKeysTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\DeployKeys;
56
class DeployKeysTest extends TestCase
67
{
78
/**
@@ -41,6 +42,6 @@ protected function getMultipleDeployKeysData()
4142

4243
protected function getApiClass()
4344
{
44-
return 'Gitlab\Api\DeployKeys';
45+
return DeployKeys::class;
4546
}
4647
}

test/Gitlab/Tests/Api/DeploymentsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\Deployments;
56
class DeploymentsTest extends TestCase
67
{
78
/**
@@ -230,6 +231,6 @@ public function shouldShowDeployment()
230231

231232
protected function getApiClass()
232233
{
233-
return 'Gitlab\Api\Deployments';
234+
return Deployments::class;
234235
}
235236
}

test/Gitlab/Tests/Api/EnvironmentsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\Environments;
56
class EnvironmentsTest extends TestCase
67
{
78
/**
@@ -190,6 +191,6 @@ public function shouldStopEnvironment()
190191

191192
protected function getApiClass()
192193
{
193-
return 'Gitlab\Api\Environments';
194+
return Environments::class;
194195
}
195196
}

test/Gitlab/Tests/Api/GroupBoardsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\GroupsBoards;
56
class GroupBoardsTest extends TestCase
67
{
78
/**
@@ -227,6 +228,6 @@ public function shouldDeleteList()
227228

228229
protected function getApiClass()
229230
{
230-
return 'Gitlab\Api\GroupsBoards';
231+
return GroupsBoards::class;
231232
}
232233
}

test/Gitlab/Tests/Api/GroupsMilestonesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\GroupsMilestones;
56
class GroupsMilestonesTest extends TestCase
67
{
78
/**
@@ -134,6 +135,6 @@ public function shouldGetMilestonesMergeRequests()
134135

135136
protected function getApiClass()
136137
{
137-
return 'Gitlab\Api\GroupsMilestones';
138+
return GroupsMilestones::class;
138139
}
139140
}

test/Gitlab/Tests/Api/GroupsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\Groups;
56
class GroupsTest extends TestCase
67
{
78
/**
@@ -523,7 +524,7 @@ public function shouldRemoveVariable()
523524

524525
protected function getApiClass()
525526
{
526-
return 'Gitlab\Api\Groups';
527+
return Groups::class;
527528
}
528529

529530
/**

test/Gitlab/Tests/Api/IssueBoardsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\IssueBoards;
56
class IssueBoardsTest extends TestCase
67
{
78
/**
@@ -227,6 +228,6 @@ public function shouldDeleteList()
227228

228229
protected function getApiClass()
229230
{
230-
return 'Gitlab\Api\IssueBoards';
231+
return IssueBoards::class;
231232
}
232233
}

test/Gitlab/Tests/Api/IssuesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Gitlab\Tests\Api;
44

5+
use Gitlab\Api\Issues;
56
class IssuesTest extends TestCase
67
{
78
/**
@@ -677,6 +678,6 @@ public function shouldGetIssueParticipants()
677678

678679
protected function getApiClass()
679680
{
680-
return 'Gitlab\Api\Issues';
681+
return Issues::class;
681682
}
682683
}

0 commit comments

Comments
 (0)