Skip to content

Run on PHP 8.3 with native phpredis caching - #287

Merged
AydinHassan merged 2 commits into
masterfrom
support-php-8.3-and-phpredis
Jul 4, 2026
Merged

AydinHassan merged 2 commits into
masterfrom
support-php-8.3-and-phpredis

Conversation

@AydinHassan

Copy link
Copy Markdown
Member

What

Runs the site on PHP 8.3 using the native phpredis extension for caching.

Changes

  • composer.lock — update to laminas/* and dependency versions that support PHP 8.3. The previous lock pinned several laminas packages to ~8.1.0, so install failed on 8.3.
  • app/config.php — switch the two Redis cache connections from the pure-PHP predis/predis client to Symfony Cache's RedisAdapter::createConnection(), which uses the native phpredis extension when installed. The connection is built from a new redisDsn config value (redis://<host>/<db>) so the cache can target a dedicated Redis database.
  • .env.dist — add the REDIS_DB variable that redisDsn reads.

Notes

  • Deployed and serving traffic on PHP 8.3.
  • Test suite: 75 tests / 0 errors with pdo_sqlite enabled for the in-memory repository tests; the 2 WorkshopCreatorTest failures are a pre-existing stale-fixture mismatch unrelated to this change.
  • No new phpcs or psalm findings introduced by this change.

🤖 Generated with Claude Code

AydinHassan and others added 2 commits July 5, 2026 00:25
Update composer.lock to laminas/dependency versions that support PHP 8.3;
the previous lock capped several laminas packages at 8.1.

Switch the Redis cache connections from the pure-PHP predis client to
Symfony Cache RedisAdapter::createConnection(), which uses the native
phpredis extension when installed. The connection is built from a new
redisDsn config value (redis://<host>/<db>) so the cache targets a
dedicated Redis database; add the REDIS_DB var to .env.dist.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ixture

The lock now requires PHP 8.2+ so the 8.1 matrix could no longer install.
Bump the matrix to 8.3 to match the runtime this branch targets.

The dependency bump (psalm 4.27->4.30, stricter laminas-inputfilter and
doctrine stubs) surfaces 27 pre-existing issues on unchanged src; record
them in a psalm baseline rather than churn unrelated files.

WorkshopCreatorTest fetches php8-appreciate's live composer.json; update
the expected snapshot to match its current require/require-dev.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AydinHassan
AydinHassan merged commit 5f16d0a into master Jul 4, 2026
1 check passed
@AydinHassan AydinHassan mentioned this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant