Skip to content

Drop webmozart/assert in favor of entropy Assert - #151

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-webmozart
Oct 1, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
remove-webmozart

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Replace webmozart/assert with Entropy\Validation\Assert (entropy ^0.4.22), which now ships all the assertions swiss-knife used: string, allString, notEmpty, isInstanceOf, fileExists, allFileExists, directory, allDirectory.

Import-only swap across 18 files; method names and InvalidArgumentException behavior match. allString() keeps its iterable<string> type narrowing.

Removes the webmozart/assert 8.2 PHP floor - one step toward running swiss-knife on PHP 7.4-8.5.

@TomasVotruba
TomasVotruba merged commit 04dbe5b into main Oct 1, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the remove-webmozart branch October 1, 2026 12:41
@TomasVotruba TomasVotruba mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant