Skip to content

fix(scaffold): ConfigurationService::importFromApp 4-arg signature in template (closes #47)#53

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/scaffold-importfromapp-signature
May 13, 2026
Merged

fix(scaffold): ConfigurationService::importFromApp 4-arg signature in template (closes #47)#53
rubenvdlinde merged 1 commit into
developmentfrom
fix/scaffold-importfromapp-signature

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

The scaffold template's SettingsService called OpenRegister's ConfigurationService::importFromApp with the stale 2-arg signature ($appId, $force). The signature changed to ($appId, array $data, string $version, bool $force), so every newly-scaffolded app inherited an ArgumentCountError at install/upgrade time.

Now loads app_template_register.json from lib/Settings/ (PlaceholderResolver substitutes app_template -> <slug> at scaffold time), extracts info.version, and passes both to the 4-arg method.

Mirrors the canonical fix in decidesk#199 and shillinq#82.

Fixes #47

… template (closes #47)

The scaffold template's SettingsService called OpenRegister's
ConfigurationService::importFromApp with the old 2-arg signature
($appId, $force). The signature changed to
($appId, array $data, string $version, bool $force), so every newly-
scaffolded app inherited an ArgumentCountError at install/upgrade time.

Load app_template_register.json from lib/Settings/ (the PlaceholderResolver
substitutes app_template -> <slug> at scaffold time), extract info.version,
and pass both to the 4-arg method. Mirrors the canonical fix shipped in
decidesk#199 and shillinq#82.

Fixes #47
@rubenvdlinde rubenvdlinde merged commit 86af75c into development May 13, 2026
15 checks passed
@rubenvdlinde rubenvdlinde deleted the fix/scaffold-importfromapp-signature branch May 13, 2026 09:10
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openbuilt @ 5b3794c

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 432/432
PHPUnit
Newman ⏭️
Playwright ⏭️

Coverage: 0% (0/19 statements)


Quality workflow — 2026-05-13 09:29 UTC

Download the full PDF report from the workflow artifacts.

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