Bump PHP to 8.1 + bundle SDKs in CI #3
Reference in New Issue
Block a user
Delete Branch "feature/webview-softphone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Unblocks the Gitea release build that was failing because
aws/aws-sdk-php3.371+ requires PHP >= 8.1, whilecomposer.json's platform was pinned to 8.0. Production runs PHP 8.5.4, so 8.1 is well within the runtime envelope.composer.json:phpconstraint>=8.0→>=8.1,platform.php8.0→8.1.gitea/workflows/release.yml:setup-phpnow installs PHP 8.1; added a conditional step that runscomposer update --no-installonly when nocomposer.lockis committed, so the build has a resolved lockfile. When a realcomposer.lockis committed later, the step skips regeneration and uses the committed file for deterministic installs.twilio-wp-plugin.php: addedRequires PHP: 8.1plugin header so WP itself enforces the minimumREADME.md/CLAUDE.md: doc bump from 8.0 to 8.1, with note that the AWS SDK is the constraint driverTest plan
vendor/with both Twilio and AWS SDKs bundledus-west-2region + AWS keys, send a test SMS via the plugin's admin "Send test SMS" actionThe Gitea release build failed because aws/aws-sdk-php 3.371+ requires PHP >= 8.1, while composer.json's platform was pinned to 8.0. Production runs PHP 8.5.4, so bumping the minimum to 8.1 is well within the runtime envelope. Changes: composer.json — require php >=8.1, platform.php = 8.1 .gitea/workflows/release.yml — setup-php now installs PHP 8.1 added pre-install step that runs `composer update --no-install` only when composer.lock is absent. If a lock file is ever committed later, CI uses it directly for deterministic installs instead of regenerating. twilio-wp-plugin.php — added "Requires PHP: 8.1" header so WordPress itself enforces the minimum README.md, CLAUDE.md — doc bump from 8.0 to 8.1, with note that the AWS SDK is the constraint driver Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>