Skip to content

Replace nette/utils and webmozart/assert with entropy and native PHP - #337

Merged
TomasVotruba merged 3 commits into
mainfrom
entropy-replace-nette-utils
Oct 5, 2026
Merged

TomasVotruba merged 3 commits into
mainfrom
entropy-replace-nette-utils

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Drops nette/utils, webmozart/assert and nette/neon as direct dependencies, replacing their usage with entropy/entropy and native PHP.

  • Nette\Utils\FileSystem::read and the duplicate in-house FileSystem\FileSystem -> Entropy\Utils\FileSystem::read (3 sites)
  • Nette\Utils\Strings::match -> native preg_match (9 sites)
  • Nette\Utils\Strings::after -> native substr + strrpos (4 sites)
  • Webmozart\Assert\Assert calls -> native guards (3 files)
  • Removed nette/neon and the lint-neon script + CI step (neon-lint binary came from it)
  • Test fixtures that referenced nette only as sample classes switched to native equivalents

This is step 1 of 2; a follow-up lowers the minimum PHP to 7.4.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 5, 2026 20:55
@TomasVotruba
TomasVotruba disabled auto-merge October 5, 2026 20:55
@TomasVotruba
TomasVotruba merged commit 56d9613 into main Oct 5, 2026
10 of 16 checks passed
@TomasVotruba
TomasVotruba deleted the entropy-replace-nette-utils branch October 5, 2026 20:55
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