Skip to content

feat: Nextcloud 35 compatibility - add nextcloud/ocp dependency - #21

Open
henmohr wants to merge 3 commits into
LibreSign:mainfrom
henmohr:nextcloud-35-compat
Open

feat: Nextcloud 35 compatibility - add nextcloud/ocp dependency#21
henmohr wants to merge 3 commits into
LibreSign:mainfrom
henmohr:nextcloud-35-compat

Conversation

@henmohr

@henmohr henmohr commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add nextcloud/ocp to require-dev for proper OCP type checking against the Nextcloud API
  • Add OCP autoload path in autoload-dev for static analysis tools

Context

The info.xml already declared max-version="35" and the app uses only public OCP interfaces that remain stable in NC35:

  • OCP\User\Backend\ABackend
  • OCP\User\Backend\ICheckPasswordBackend
  • OCP\User\Backend\IGetRealUIDBackend
  • OCP\User\Backend\IProvideEnabledStateBackend
  • OCP\Cache\CappedMemoryCache

Adding nextcloud/ocp as a dev dependency ensures proper type checking and IDE support when developing against the NC35 API.

CI

The existing CI workflows already test with PHP 8.2 and 8.3, covering NC35's PHP 8.3 requirement.

- 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 <henmohr@users.noreply.github.com>
Regenerated composer.lock to include the nextcloud/ocp dev package
added in the previous commit.

Signed-off-by: henmohr <henmohr@users.noreply.github.com>
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 <henmohr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant