number_format() in PHP 8.3 strictly requires int|float; $wpdb->get_var() returns string|null. Cast $total to (int) at point of assignment in admin/partials/articles-list.php to fix HTTP 500 on Articles admin page. Also add PHPUnit test covering the string->int cast contract. Fixes #31. Version bump 2.5.0 -> 2.5.1. Agent-Session: fix-articles-500-20260617
1.6 KiB
1.6 KiB
Changelog
All notable changes to Peptide News Plugin are documented here. Format: Keep a Changelog. Versioning: Semantic Versioning.
[2.5.1] - 2026-06-17
Fixed
- PHP 8.3
TypeErroron Articles admin page:number_format()rejects the numeric string returned by$wpdb->get_var(). Cast$totalto(int)at point of assignment inadmin/partials/articles-list.php(#31).
[2.5.0] — 2026-06-16
Changed
- CI standardization (estate wave 2): Replace per-repo CI jobs in
ci.ymlwith a thin caller ofpeptiderepo/peptide-e2e/.github/workflows/ci.yml@main(tests: stubs,has_js: true). Addsworkflow_calltrigger sodeploy.ymlgate remains valid. - Extract
security-auditjob fromci.ymlinto standalone.github/workflows/security-audit.yml(kept as-is, unique to this repo). deploy.yml: elevate permissions tocontents: writeso the nested phpcbf commit-back step in the reusable workflow receives the correct token scope.composer.json: pintestscript tovendor/bin/phpunit --configuration phpunit.xml.distfor explicit path resolution in CI; pinlint/lint:fixtovendor/bin/.phpunit.xml.dist: add XSD reference for PHPUnit 9.6; drop deprecatedconvertErrorsToExceptions,convertNoticesToExceptions,convertWarningsToExceptionsattributes.
Notes
rollback.ymlandcto-review.ymlandmain-push-audit.ymlunchanged — unique / estate-separate.- No functional code changes in this commit.
Prior history
Versions prior to 2.5.0 were not tracked in a CHANGELOG. See git log for details.