Update PHP SDK to 26#194
Conversation
Greptile Summary
Confidence Score: 3/5The dependency and SDK compatibility changes are scoped, but some migration paths depend on external Appwrite database behavior that was not fully exercised. Static checks and most tests were reported, while the end-to-end database setup did not complete because the database was unavailable. No specific files require follow-up from this review.
What T-Rex did
Reviews (3): Last reviewed commit: "Pass project header on direct Appwrite u..." | Re-trigger Greptile |
| 301 => StatusCode::MOVEDPERMANENTLY(), | ||
| 302 => StatusCode::FOUND(), | ||
| 307 => StatusCode::TEMPORARYREDIRECT(), | ||
| 308 => StatusCode::PERMANENTREDIRECT(), | ||
| default => StatusCode::MOVEDPERMANENTLY(), |
There was a problem hiding this comment.
Update runtime mappings The SDK bump brings new
Runtime and BuildRuntime enum values, but the import mappings below still only accept the older runtime set. When a source project has a function or site using a newer Appwrite 1.9 runtime such as php-8.4, node-23, go-1.24, or newer Flutter build runtimes, import reaches the default branch and fails with Invalid Runtime or Invalid Build Runtime instead of recreating the resource. Please extend the function and site runtime match expressions for the SDK 26 enum values as part of this compatibility update.
| "ext-openssl": "*", | ||
|
|
||
| "appwrite/appwrite": "24.*", | ||
| "appwrite/appwrite": "^26.0", |
There was a problem hiding this comment.
Migrate new policies SDK 26 exposes additional project policy IDs for denying aliased, disposable, free, and corporate emails, but this dependency bump does not add those fields to the migration resource. A project with those email restrictions enabled can be exported and imported without carrying the settings into the destination, reopening sign-up paths that were blocked on the source. Please extend the policies export/resource/import path to preserve the new policy values introduced by this SDK version.
Artifacts
Repro: focused PHP policy migration harness
- Contains supporting evidence from the run (text/x-php; charset=utf-8).
Repro: harness output showing SDK 26 email restriction policies dropped
- Keeps the command output available without making the summary code-heavy.
Summary
appwrite/appwritedependency constraint to^26.0and lock to26.0.0.Testing
composer lintcomposer checkcomposer test(fails in NHost/Supabase E2E setup because DB was offline after 5 tries)