Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix: make composer check:strict pass on development#670

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpstan-gate9-eslint
May 28, 2026
Merged

fix: make composer check:strict pass on development#670
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpstan-gate9-eslint

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • PHPStan (15 errors → 0): removed dead-code is_array===false guards; fixed caseId offset bug in CaseTransferService; removed redundant ?? in GuardRegistry::allPassed; removed always-true || in ParaferingAuditAppendOnlyValidator; removed stale baseline entry; added missing revokeShare() + getFilteredCaseData() to CaseSharingService + fixed validateToken return type
  • gate-9 semantic-auth: dropped @publicpage from AcController::create, update, patch, destroy
  • PHPCS (all errors → 0): fixed inline ternaries, assignment alignment, missing //end try comments, blank line after inline comment
  • ESLint (8 errors → 0): auto-fixed vue/max-attributes-per-line and vue/html-indent

Test plan

  • composer check:strict exits 0 (verified locally: PHPStan OK, PHPCS OK, PHPMD OK, Psalm info-only, 171/0/0 PHPUnit)
  • npm run lint exits 0 (0 errors)
  • gate-9: AcController create/update/patch/destroy no longer have @publicpage

PHPStan: removed 4 dead-code is_array===false guards (HearingService,
GuardRegistry, SideEffectDispatcher, WfsExportService, ChecklistService
×2); extracted caseId before status mutation in CaseTransferService;
removed redundant ?? on array{passed:bool} in GuardRegistry::allPassed;
removed always-true || in ParaferingAuditAppendOnlyValidator catch block;
removed stale baseline entry for ChecklistService.

Added missing CaseSharingService::revokeShare() and
getFilteredCaseData() methods (called by CaseSharingController and
PublicShareController); added requiresPassword to validateToken return
type so PublicShareController::accessShare password-gate compiles clean.

gate-9 semantic-auth: dropped @publicpage from AcController::create,
update, patch, destroy — JWT body-check is authoritative, NC default
non-public protects the routes correctly.

PHPCS: fixed inline-IF ternary in CaseTransferService, CaseSharingService,
InspectionController (×4); fixed assignment-alignment in
InspectionController (×3); added missing //end try comments in
InspectionController (×2) and ZgwService; removed blank line after
inline comment in ZgwService.

ESLint: auto-fixed 8 vue/max-attributes-per-line and vue/html-indent
errors across Vue/JS sources.

All 171 PHPUnit tests pass; composer check:strict exits 0.
@rubenvdlinde rubenvdlinde merged commit 0e052b6 into development May 28, 2026
@rubenvdlinde rubenvdlinde deleted the fix/strict-phpstan-gate9-eslint branch May 28, 2026 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant