Skip to content

Drop nette/utils in favor of entropy utils - #149

Merged
TomasVotruba merged 1 commit into
mainfrom
bump-entropy
Oct 1, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
bump-entropy

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Replace nette/utils with the equivalent utilities already shipped in entropy/entropy, bumped to ^0.4.20.

Mapping:

  • Nette\Utils\FileSystem -> Entropy\Utils\FileSystem (dropped the 3rd null mode arg; added an explicit ensureDirectoryExists() where a new output dir may be written)
  • Nette\Utils\Json::decode($x, true) -> Entropy\Utils\Json::decode($x) (always force-array)
  • Nette\Utils\Strings::matchAll/replace/split -> Entropy\Utils\Regex::matchAll/replace/split

split() was added to entropy's Regex for this (rectorphp dependency, entropy 0.4.20).

Removes the nette/utils 8.2 PHP floor as one step toward running swiss-knife on PHP 7.4-8.5. nette/robot-loader and sebastian/lines-of-code floors remain and are tackled separately.

@TomasVotruba
TomasVotruba merged commit 818e828 into main Oct 1, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the bump-entropy branch October 1, 2026 09:02
@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