Closes#130. Fixes the two PHP warnings in prod's error log.
1. Constant E_STRICT is deprecated (helpers/ErrorHandler.php)
Dropped E_STRICT => 'STRICT' from the error-type name map. PHP 8.4 deprecates the constant, and a later PHP removes it.
It has had no effect since PHP 8.0, so no error ever carries that type, and nothing is lost on 8.2/8.3 either.
Nothing else in the code uses E_STRICT.
2. Array to string conversion and the literal "Array" in the ticket timeline (views/TicketView.php)
Cause: the timeline showed an audit detail as "from → to" only when isset($v['from'], $v['to']), which is false when either side is null.
Who hit it: the source and dedup_key backfills from #123 log {from: null, to: ...}. So 147 tickets showed "Array", and the server logged a warning on every view.
Same bug in the header: the timeline header said "updated this ticket" instead of "updated source".
Fix:
isAuditDelta() uses array_key_exists.
formatAuditValue() shows null/empty as "(none)", booleans as yes/no and any array as JSON, so no shape can print "Array" again. Long values are still cut at 60 characters. Other details are cut at 500; before, they had no limit.
The header and the detail lines use the same check.
Screenshots
Synthetic ticket on a local stack with three audit rows: a source backfill (from: null), a dedup_key backfill, and a priority change with a nested and a boolean extra. The page and the console showed no errors.
Before (development)
After (this branch)
Verification
Local timeline: before, the dev server logged 3 × Array to string conversion in views/TicketView.php on line 812, the same line as prod. After: 0.
E_STRICT: only PHP 8.2 is available locally, so that deprecation can't be reproduced here. After deploy, grep -c "E_STRICT\|Array to string" /var/log/nginx/error.log on CT132 should stop growing.
Closes #130. Fixes the two PHP warnings in prod's error log.
## 1. `Constant E_STRICT is deprecated` (`helpers/ErrorHandler.php`)
- Dropped `E_STRICT => 'STRICT'` from the error-type name map. PHP 8.4 deprecates the constant, and a later PHP removes it.
- It has had no effect since PHP 8.0, so no error ever carries that type, and nothing is lost on 8.2/8.3 either.
- Nothing else in the code uses `E_STRICT`.
## 2. `Array to string conversion` and the literal "Array" in the ticket timeline (`views/TicketView.php`)
- **Cause:** the timeline showed an audit detail as "from → to" only when `isset($v['from'], $v['to'])`, which is false when either side is `null`.
- **Who hit it:** the source and `dedup_key` backfills from #123 log `{from: null, to: ...}`. So **147 tickets** showed "Array", and the server logged a warning on every view.
- **Same bug in the header:** the timeline header said "updated this ticket" instead of "updated source".
- **Fix:**
- `isAuditDelta()` uses `array_key_exists`.
- `formatAuditValue()` shows `null`/empty as "(none)", booleans as yes/no and any array as JSON, so no shape can print "Array" again. Long values are still cut at 60 characters. Other details are cut at 500; before, they had no limit.
- The header and the detail lines use the same check.
## Screenshots
Synthetic ticket on a local stack with three audit rows: a `source` backfill (`from: null`), a `dedup_key` backfill, and a priority change with a nested and a boolean extra. The page and the console showed no errors.
| Before (`development`) | After (this branch) |
|---|---|
|  |  |
## Verification
- **Local timeline:** before, the dev server logged 3 × `Array to string conversion in views/TicketView.php on line 812`, the same line as prod. After: 0.
- **`E_STRICT`:** only PHP 8.2 is available locally, so that deprecation can't be reproduced here. After deploy, `grep -c "E_STRICT\|Array to string" /var/log/nginx/error.log` on CT132 should stop growing.
- phpcs (`.phpcs.xml`) is clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
ErrorHandler: drop E_STRICT from the error-type name map. PHP 8.4
deprecates the constant (it has had no effect since 8.0, so no error ever
carried that type), and a later PHP removes it.
TicketView timeline: audit details were shown as "from -> to" only when
isset($v['from'], $v['to']), which is false when either side is null.
The source and dedup_key backfills (#123) log {from: null, to: ...}, so
147 tickets showed the literal "Array" and logged "Array to string
conversion" on every view. isAuditDelta() uses array_key_exists, and
formatAuditValue() shows null as "(none)", booleans as yes/no and any
array as JSON, so no shape can print "Array" again. The timeline header
("updated source") uses the same check.
Closes#130
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #130. Fixes the two PHP warnings in prod's error log.
1.
Constant E_STRICT is deprecated(helpers/ErrorHandler.php)E_STRICT => 'STRICT'from the error-type name map. PHP 8.4 deprecates the constant, and a later PHP removes it.E_STRICT.2.
Array to string conversionand the literal "Array" in the ticket timeline (views/TicketView.php)isset($v['from'], $v['to']), which is false when either side isnull.dedup_keybackfills from #123 log{from: null, to: ...}. So 147 tickets showed "Array", and the server logged a warning on every view.isAuditDelta()usesarray_key_exists.formatAuditValue()showsnull/empty as "(none)", booleans as yes/no and any array as JSON, so no shape can print "Array" again. Long values are still cut at 60 characters. Other details are cut at 500; before, they had no limit.Screenshots
Synthetic ticket on a local stack with three audit rows: a
sourcebackfill (from: null), adedup_keybackfill, and a priority change with a nested and a boolean extra. The page and the console showed no errors.development)Verification
Array to string conversion in views/TicketView.php on line 812, the same line as prod. After: 0.E_STRICT: only PHP 8.2 is available locally, so that deprecation can't be reproduced here. After deploy,grep -c "E_STRICT\|Array to string" /var/log/nginx/error.logon CT132 should stop growing..phpcs.xml) is clean.🤖 Generated with Claude Code