Skip to content

fix: Fix PHPUnit tests for CI #15

fix: Fix PHPUnit tests for CI

fix: Fix PHPUnit tests for CI #15

Triggered via pull request March 13, 2026 14:17
Status Failure
Total duration 1m 29s
Artifacts

code-quality.yml

on: pull_request
Frontend Quality
1m 24s
Frontend Quality
Matrix: php-checks
Fit to window
Zoom out
Zoom in

Annotations

29 errors and 14 warnings
PHPUnit
Process completed with exit code 2.
PHPMD
Process completed with exit code 2.
PHPCS
Process completed with exit code 2.
InvalidArgument: lib/Service/ArchiMateService.php#L1845
lib/Service/ArchiMateService.php:1845:23: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateImportService.php#L5745
lib/Service/ArchiMateImportService.php:5745:34: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateImportService.php#L5743
lib/Service/ArchiMateImportService.php:5743:34: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateImportService.php#L5741
lib/Service/ArchiMateImportService.php:5741:34: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateImportService.php#L5739
lib/Service/ArchiMateImportService.php:5739:27: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
UndefinedFunction: lib/Service/ArchiMateImportService.php#L3155
lib/Service/ArchiMateImportService.php:3155:106: UndefinedFunction: Function OCA\SoftwareCatalog\Service\falsey does not exist (see https://psalm.dev/021)
UndefinedThisPropertyFetch: lib/Service/ArchiMateImportService.php#L3155
lib/Service/ArchiMateImportService.php:3155:81: UndefinedThisPropertyFetch: Instance property OCA\SoftwareCatalog\Service\ArchiMateImportService::$isComplexArra is not defined (see https://psalm.dev/041)
InvalidArgument: lib/Service/ArchiMateExportService.php#L1370
lib/Service/ArchiMateExportService.php:1370:31: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateExportService.php#L1338
lib/Service/ArchiMateExportService.php:1338:31: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
InvalidArgument: lib/Service/ArchiMateExportService.php#L246
lib/Service/ArchiMateExportService.php:246:23: InvalidArgument: Calling empty on a boolean value is almost certainly unintended (see https://psalm.dev/004)
PHPStan: lib/AppInfo/Application.php#L110
Call to method registerService() on an unknown class OCP\AppFramework\Bootstrap\IRegistrationContext.
PHPStan: lib/AppInfo/Application.php#L104
Class OCP\App\IAppManager not found.
PHPStan: lib/AppInfo/Application.php#L102
Class OCP\IUserManager not found.
PHPStan: lib/AppInfo/Application.php#L101
Class OCP\IGroupManager not found.
PHPStan: lib/AppInfo/Application.php#L97
Call to method registerService() on an unknown class OCP\AppFramework\Bootstrap\IRegistrationContext.
PHPStan: lib/AppInfo/Application.php#L92
Parameter $context of method OCA\SoftwareCatalog\AppInfo\Application::register() has invalid type OCP\AppFramework\Bootstrap\IRegistrationContext.
PHPStan: lib/AppInfo/Application.php#L92
Parameter $context of method OCA\SoftwareCatalog\AppInfo\Application::register() has invalid type OCP\AppFramework\Bootstrap\IRegistrationContext.
PHPStan: lib/AppInfo/Application.php#L82
OCA\SoftwareCatalog\AppInfo\Application::__construct() calls parent::__construct() but OCA\SoftwareCatalog\AppInfo\Application does not extend any class.
PHPStan: lib/AppInfo/Application.php#L70
Class OCA\SoftwareCatalog\AppInfo\Application implements unknown interface OCP\AppFramework\Bootstrap\IBootstrap.
PHPStan: lib/AppInfo/Application.php#L70
Class OCA\SoftwareCatalog\AppInfo\Application extends unknown class OCP\AppFramework\App.
Frontend Quality
Process completed with exit code 1.
Frontend Quality: src/views/organisaties/OrganisatieIndex.vue#L76
'Delete' is defined but never used
Frontend Quality: src/views/organisaties/OrganisatieIndex.vue#L70
Unable to resolve path to module '@conduction/nextcloud-vue'
Frontend Quality: src/store/plugins/softwarecatalogPlugin.js#L14
Unable to resolve path to module '@conduction/nextcloud-vue'
Frontend Quality: src/store/modules/object.js#L18
Unable to resolve path to module '@conduction/nextcloud-vue'
Frontend Quality: src/App.vue#L26
Unable to resolve path to module '@conduction/nextcloud-vue'
PHPUnit
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPMD
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPCS
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Psalm
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPStan
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, shivammathur/setup-php@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Frontend Quality
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Frontend Quality: src/views/organisaties/OrganisatieIndex.vue#L423
Missing JSDoc @PARAM "limit" declaration
Frontend Quality: src/views/organisaties/OrganisatieIndex.vue#L423
Missing JSDoc @PARAM "page" declaration
Frontend Quality: src/store/plugins/softwarecatalogPlugin.js#L872
Defaults are not permitted on @PARAM
Frontend Quality: src/store/plugins/softwarecatalogPlugin.js#L781
Defaults are not permitted on @PARAM
Frontend Quality: src/store/plugins/softwarecatalogPlugin.js#L780
Defaults are not permitted on @PARAM
Frontend Quality: src/store/plugins/softwarecatalogPlugin.js#L32
Defaults are not permitted on @PARAM
Frontend Quality: src/modals/Modals.vue#L74
The "setup" property should be above the "computed" property on line 59