From c4205168137b6966f6b07b6f2377c8a2a58f4a83 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 15 Jun 2021 11:48:15 +0200 Subject: [PATCH 1/2] Fix phpunit.xml Signed-off-by: Joas Schilling --- tests/phpunit.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/phpunit.xml b/tests/phpunit.xml index b437e68..ec07ca1 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -3,7 +3,6 @@ verbose="true" > - Integration Unit From a4dd0cc7e82491ffb05b895d374ba9b1abc30b50 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 15 Jun 2021 11:55:17 +0200 Subject: [PATCH 2/2] Specify platform and more Signed-off-by: Joas Schilling --- composer.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/composer.json b/composer.json index 09d054e..7ba171b 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,27 @@ { + "autoload-dev": { + "psr-4": { + "OCP\\": "vendor/christophwurst/nextcloud/OCP", + "OCA\\Registration\\": "lib/" + } + }, + "name": "nextcloud/registration", + "description": "registration", + "license": "AGPL", + "require": { + }, "scripts": { "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l" }, + "config": { + "optimize-autoloader": true, + "classmap-authoritative": true, + "platform": { + "php": "7.2" + } + }, "require-dev": { "phpunit/phpunit": "^8.0", "nextcloud/coding-standard": "^0.5.0",