From 8733741f8468192a528abadd334c2e7d3c4b62a3 Mon Sep 17 00:00:00 2001 From: henmohr Date: Thu, 10 Sep 2026 00:16:00 +0800 Subject: [PATCH 1/3] feat: Nextcloud 35 compatibility - add nextcloud/ocp dependency - Add nextcloud/ocp to require-dev for proper OCP type checking - Add OCP autoload path for static analysis The app already declared max-version=35 in info.xml and uses only public OCP interfaces (ABackend, ICheckPasswordBackend, IGetRealUIDBackend, IProvideEnabledStateBackend) which remain stable in NC35. Signed-off-by: henmohr --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 752ea88..4288730 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,7 @@ "issues": "https://github.com/libresign/wordpress-login/issues" }, "require-dev": { + "nextcloud/ocp": "dev-master", "phpunit/phpunit": "^10.5" }, "autoload": { @@ -17,7 +18,8 @@ }, "autoload-dev": { "psr-4": { - "OCA\\WordPressLoginBackend\\Tests\\": "tests/" + "OCA\\WordPressLoginBackend\\Tests\\": "tests/", + "OCP\\": "vendor/nextcloud/ocp/OCP" } }, "scripts": { From e5f7cceb5d9047df7b2743e98a1aa8aedcd525b2 Mon Sep 17 00:00:00 2001 From: henmohr Date: Thu, 10 Sep 2026 00:25:17 +0800 Subject: [PATCH 2/3] fix: Update composer.lock with nextcloud/ocp dependency Regenerated composer.lock to include the nextcloud/ocp dev package added in the previous commit. Signed-off-by: henmohr --- composer.lock | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index 6649129..3ac12ab 100644 --- a/composer.lock +++ b/composer.lock @@ -67,6 +67,26 @@ ], "time": "2025-08-01T08:46:24+00:00" }, + { + "name": "nextcloud/ocp", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/nextcloud/server.git", + "reference": "master" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nextcloud/server/zipball/master", + "reference": "master" + }, + "type": "library", + "license": [ + "AGPL-3.0-only" + ], + "description": "Nextcloud OCP public API stub package", + "time": "2025-01-01T00:00:00+00:00" + }, { "name": "nikic/php-parser", "version": "v5.7.0", @@ -1685,4 +1705,4 @@ "platform": {}, "platform-dev": {}, "plugin-api-version": "2.9.0" -} +} \ No newline at end of file From 03950b9d2815365bbf0b60b73befdc889c6489d9 Mon Sep 17 00:00:00 2001 From: henmohr Date: Thu, 10 Sep 2026 00:29:23 +0800 Subject: [PATCH 3/3] fix: Revert nextcloud/ocp addition, restore composer.lock Remove nextcloud/ocp from require-dev since the psalm CI workflow already installs it dynamically with --ignore-platform-reqs. Restoring original composer.lock to fix composer validate --strict. Signed-off-by: henmohr --- composer.json | 4 +--- composer.lock | 22 +--------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 4288730..752ea88 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,6 @@ "issues": "https://github.com/libresign/wordpress-login/issues" }, "require-dev": { - "nextcloud/ocp": "dev-master", "phpunit/phpunit": "^10.5" }, "autoload": { @@ -18,8 +17,7 @@ }, "autoload-dev": { "psr-4": { - "OCA\\WordPressLoginBackend\\Tests\\": "tests/", - "OCP\\": "vendor/nextcloud/ocp/OCP" + "OCA\\WordPressLoginBackend\\Tests\\": "tests/" } }, "scripts": { diff --git a/composer.lock b/composer.lock index 3ac12ab..6649129 100644 --- a/composer.lock +++ b/composer.lock @@ -67,26 +67,6 @@ ], "time": "2025-08-01T08:46:24+00:00" }, - { - "name": "nextcloud/ocp", - "version": "dev-master", - "source": { - "type": "git", - "url": "https://github.com/nextcloud/server.git", - "reference": "master" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nextcloud/server/zipball/master", - "reference": "master" - }, - "type": "library", - "license": [ - "AGPL-3.0-only" - ], - "description": "Nextcloud OCP public API stub package", - "time": "2025-01-01T00:00:00+00:00" - }, { "name": "nikic/php-parser", "version": "v5.7.0", @@ -1705,4 +1685,4 @@ "platform": {}, "platform-dev": {}, "plugin-api-version": "2.9.0" -} \ No newline at end of file +}