PHP warnings in prod log: E_STRICT deprecated (ErrorHandler) and "Array to string conversion" in the ticket timeline #130
Closed
opened 2026-11-28 12:46:29 -05:00 by jared
·
0 comments
No Branch/Tag Specified
main
ci-standard
deps-symfony-http-client
ci-playwright-ui
development
pr-133-screenshots
auto-reopen-bypass-workflow
pr-124-screenshots
dedup-key-contract
mcp-comment-edit-delete
pr-120-screenshots
pr-119-screenshots
fix-114-description-markdown
fix/comment-markdown-persist-18
deploy-2026.11.29-357
deploy-2026.11.29-347
deploy-2026.11.28-337
deploy-2026.11.27-327
deploy-2026.11.25-317
deploy-2026.11.11-291
deploy-2026.10.03-279
deploy-2026.10.03-275
deploy-2026.09.26-272
deploy-2026.09.25-268
deploy-2026.09.25-264
deploy-2026.09.24-258
deploy-2026.09.24-254
deploy-2026.09.12-242
deploy-2026.09.12-238
deploy-2026.09.12-234
deploy-2026.09.12-230
deploy-2026.09.12-226
deploy-2026.09.12-222
deploy-2026.09.11-218
deploy-2026.09.11-214
deploy-2026.09.11-210
deploy-2026.09.11-206
deploy-2026.09.11-202
deploy-2026.09.11-198
deploy-2026.09.11-194
deploy-2026.09.11-190
deploy-2026.09.11-186
deploy-2026.09.09-182
deploy-2026.09.09-178
deploy-2026.09.08-172
deploy-2026.09.01-163
deploy-2026.08.08-155
deploy-2026.08.08-151
deploy-2026.08.08-147
deploy-2026.08.08-143
deploy-2026.08.08-139
deploy-2026.07.15-130
deploy-2026.07.15-122
deploy-2026.07.11-107
deploy-2026.06.30-96
deploy-2026.06.30-92
deploy-2026.06.30-88
deploy-2026.06.30-84
deploy-2026.06.30-80
deploy-2026.06.30-76
deploy-2026.06.30-72
deploy-2026.06.30-68
deploy-2026.04.29-49
deploy-2026.04.29-41
deploy-2026.04.18-35
deploy-2026.04.16-31
deploy-2026.04.16-27
deploy-2026.04.16-23
deploy-2026.04.16-11
deploy-2026.04.14-9
Labels
Clear labels
api
bug
concurrency
config
data-integrity
dead-code
documentation
duplicate
enhancement
help wanted
invalid
needs-decision
notifications
performance
priority/docs
priority/high
priority/low
priority/medium
question
rate-limiting
reliability
security
ux
wontfix
workflow
Bearer/internal API surface
Something is not working
Race condition / concurrency bug
Configuration / deployment default
Data correctness / schema / integrity issue
Unused / dead code cleanup
README / docs accuracy
This issue or pull request already exists
New feature
Need some help
Something is wrong
Needs a maintainer decision, not clearly a bug
Matrix / in-app notification bug
Performance or resource-usage concern
Documentation-only gap
High-severity / high-impact issue
Low-severity / cosmetic issue
Medium-severity issue
More information is needed
Rate limiting behavior
Reliability / error-handling gap
Security or access-control impact
User-facing UX/functional bug
This won't be fixed
Ticket status workflow engine
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/tinker_tickets#130
Reference in new issue
Block a user
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.
Two PHP warnings show up in CT132's
/var/log/nginx/error.logon prod (PHP-FPM 8.4). Neither breaks a page today.1.
Constant E_STRICT is deprecatedinhelpers/ErrorHandler.php:270E_STRICT => 'STRICT'. PHP 8.4 deprecates theE_STRICTconstant, because it has had no effect since PHP 8.0. Any request that loads the error handler can log it.E_STRICTline. If PHP 8.2/8.3 should still get a name for it, guard it instead:if (defined('E_STRICT') && PHP_VERSION_ID < 80400). Also check whether anything else usesE_STRICT(e.g. in anerror_reporting()mask).2.
Array to string conversioninviews/TicketView.php:812(activity timeline)Logged since 2026-11-27, about once each time someone opens an affected ticket.
isset($v['from'], $v['to']).isset()is false when either value isnull. Such an entry then falls to the generic branch,htmlspecialchars((string)$v), which logs the warning and shows the literal text "Array" in the timeline.null:backfill_ticket_source.php:source: {from: null, to: "hwmonDaemon"}, on 147 tickets (137 hwmonDaemon, 10 gandalf), written 2026-11-25.backfill_dedup_keys.php:dedup_key: {from: null, to: ...}, for any ticket backfilled later.array_key_existsinstead ofisset(is_array($v) && array_key_exists('from', $v) && array_key_exists('to', $v)), and shownullas "(none)".json_encode) instead of(string), so an unexpected shape never prints "Array".How to check after the fix
Source: (none) → hwmonDaemonwith no new log line.🤖 Generated with Claude Code