Skip to content

Commit 2b1b6d1

Browse files
authored
Merge pull request #44 from nextcloud-libraries/enh/update-rector-to-2.0
Enh/update rector to 2.0
2 parents ba5a352 + bbf5de8 commit 2b1b6d1

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^8.1"
18+
"php": "^8.1",
19+
"nextcloud/ocp": ">=27",
20+
"rector/rector": "^2.0"
1921
},
2022
"require-dev": {
2123
"phpunit/phpunit": "^10.5",
22-
"ramsey/devtools": "^2.0",
23-
"rector/rector": "^1.2"
24+
"ramsey/devtools": "^2.0"
2425
},
2526
"minimum-stability": "dev",
2627
"prefer-stable": true,
2728
"autoload": {
2829
"psr-4": {
29-
"Nextcloud\\Rector\\": "src/"
30+
"Nextcloud\\Rector\\": "src/",
31+
"OCP\\": "vendor/nextcloud/ocp/OCP"
3032
}
3133
},
3234
"autoload-dev": {
@@ -44,6 +46,9 @@
4446
"ramsey/composer-repl": true,
4547
"ramsey/devtools": true
4648
},
49+
"platform": {
50+
"php": "8.1"
51+
},
4752
"sort-packages": true
4853
},
4954
"extra": {

src/Set/NextcloudSets.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
namespace Nextcloud\Rector\Set;
66

7-
use Rector\Set\Contract\SetListInterface;
8-
9-
/**
10-
* @psalm-suppress DeprecatedInterface
11-
*/
12-
final class NextcloudSets implements SetListInterface
7+
final class NextcloudSets
138
{
149
public const NEXTCLOUD_25 = __DIR__ . '/../../config/nextcloud-25/nextcloud-25-deprecations.php';
1510
public const NEXTCLOUD_26 = __DIR__ . '/../../config/nextcloud-26/nextcloud-26-deprecations.php';

tests/Rector/LegacyGetterToOcpServerGetRector/config/config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
->withConfiguredRule(
1212
LegacyGetterToOcpServerGetRector::class,
1313
[
14-
/** @phpstan-ignore class.notFound */
1514
new LegacyGetterToOcpServerGet('getRequest', IRequest::class),
1615
new LegacyGetterToOcpServerGet('getContactsManager', 'OCP\Contacts\IManager'),
1716
],

0 commit comments

Comments
 (0)