fix: add declare(strict_types=1) to Services/ files #3

Closed
opened 2026-02-20 11:07:05 +00:00 by Clotho · 1 comment
Member

Issue

Nine service files are missing declare(strict_types=1); declaration, violating project conventions (CLAUDE.md line 86).

Affected Files

  • Services/CreditNoteService.php
  • Services/DunningService.php
  • Services/InvoiceService.php
  • Services/PaymentMethodService.php
  • Services/ProrationResult.php
  • Services/RefundService.php
  • Services/SubscriptionService.php
  • Services/TaxService.php
  • Services/UsageBillingService.php

Expected Fix

Add declare(strict_types=1); as line 3 (between <?php and namespace) in each file:

<?php

declare(strict_types=1);

namespace Core\Mod\Commerce\Services;

Priority

High - Type safety is a core project convention.


Created by discovery scan (issue #2)

## Issue Nine service files are missing `declare(strict_types=1);` declaration, violating project conventions (CLAUDE.md line 86). ## Affected Files - `Services/CreditNoteService.php` - `Services/DunningService.php` - `Services/InvoiceService.php` - `Services/PaymentMethodService.php` - `Services/ProrationResult.php` - `Services/RefundService.php` - `Services/SubscriptionService.php` - `Services/TaxService.php` - `Services/UsageBillingService.php` ## Expected Fix Add `declare(strict_types=1);` as line 3 (between `<?php` and `namespace`) in each file: ```php <?php declare(strict_types=1); namespace Core\Mod\Commerce\Services; ``` ## Priority High - Type safety is a core project convention. --- _Created by discovery scan (issue #2)_
Clotho added the
review
discovery
labels 2026-02-20 11:07:05 +00:00
Charon added
PHP
bug
P1
and removed
review
discovery
labels 2026-02-20 12:17:14 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:44 +00:00
Member

This issue was already resolved in commit df167eb (merged via PR #22 "DX audit and fix"). All 9 service files now have declare(strict_types=1);. Closing as already fixed.

This issue was already resolved in commit df167eb (merged via PR #22 "DX audit and fix"). All 9 service files now have `declare(strict_types=1);`. Closing as already fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: core/php-commerce#3
No description provided.