Skip to content

chore: allow utopia-php/validators 0.5 - #15

Merged
ChiragAgg5k merged 1 commit into
mainfrom
chore/validators-0.5
Aug 14, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
chore/validators-0.5

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

appwrite/server-ce now requires utopia-php/validators ^0.5, and this library is the last thing holding Appwrite Cloud on ^0.4. utopia-php/http (2.0.0-rc23), queue (1.2.1), storage (4.0.4) and audit (3.0.2) have all shipped ^0.5 already, so with this in place Cloud can resolve again.

Why this is safe

The only change between 0.4.2 and 0.5.0 is in src/Validator/Text.php: a new optional constructor parameter $requireNonBlank, defaulting to false, plus the matching branch in isValid() and a sentence in getDescription(). Existing behaviour is unchanged unless a caller opts in.

This library never constructs Text — the single validator import is the base Utopia\Validator class in src/Validator/Conditions.php — so nothing here is affected either way.

Verification

composer test    # OK (52 tests, 188 assertions)
composer lint    # PASS, 17 files, PSR-12
composer check   # [OK] No errors (PHPStan)

A tagged release is needed after this merges before Cloud can pick it up.

0.5.0 only adds an optional $requireNonBlank parameter to Text, defaulting
to false, so nothing this library relies on changes.
@greptile-apps

greptile-apps Bot commented Aug 14, 2026

Copy link
Copy Markdown

Greptile Summary

Updates utopia-php/validators support from ^0.4 to ^0.5 so downstream Appwrite packages can resolve compatible dependencies.

  • Raises the Composer constraint to ^0.5.
  • Refreshes the lockfile from validator version 0.4.1 to 0.5.0.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete compatibility, security, or lockfile consistency issue identified.

The dependency update is internally consistent, and the repository only subclasses the validator base class while the described 0.5.0 change is confined to an unused optional Text behavior.

Important Files Changed

Filename Overview
composer.json Broadens the required validator dependency to the intended 0.5 release line; no incompatible repository usage was identified.
composer.lock Consistently locks utopia-php/validators 0.5.0 and updates its source metadata and content hash.

Reviews (1): Last reviewed commit: "chore: allow utopia-php/validators 0.5" | Re-trigger Greptile

@ChiragAgg5k
ChiragAgg5k merged commit 7cf1ef7 into main Aug 14, 2026
5 checks passed
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.

2 participants