8000 Removed deprecated Config::getInstalledPhpVersions() by morozov · Pull Request #1100 · phpbrew/phpbrew · GitHub
[go: up one dir, main page]

Skip to content

Removed deprecated Config::getInstalledPhpVersions()#1100

Merged
morozov merged 1 commit intophpbrew:masterfrom
morozov:remove-get-installed-php-versions
Dec 19, 2019
Merged

Removed deprecated Config::getInstalledPhpVersions()#1100
morozov merged 1 commit intophpbrew:masterfrom
morozov:remove-get-installed-php-versions

Conversation

@morozov
Copy link
Contributor
@morozov morozov commented Dec 19, 2019

Additionally:

  1. Removed the $stripPrefix flag from BuildFinder::findInstalledBuilds(). Instead, introduced BuildFinder::findInstalledVersions().
  2. Removed BuildFinder::findMatchedBuilds().
  3. Replaced code usages: Config::getInstalledPhpVersions()BuildFinder::findInstalledBuilds() (returns builds with the "php-" prefix); BuildFinder::findInstalledBuilds() or BuildFinder::findMatchedBuilds()BuildFinder::findInstalledVersions() (returns versions without the "php-" prefix).
  4. Removed the unnecessary exception from BuildFinder::findInstalledBuilds(). The non-existing php directory isn't a more exceptional situation than the empty directory (which doesn't result in an exception).

Additionally:

1. Removed the $stripPrefix flag from `BuildFinder::findInstalledBuilds()`. Instead, introduced `BuildFinder::findInstalledVersions()`.
2. Removed `BuildFinder::findMatchedBuilds()`.
3. Replaced code usages: `Config::getInstalledPhpVersions()` → `BuildFinder::findInstalledBuilds()` (returns builds with the "php-" prefix); `BuildFinder::findInstalledBuilds()` or `BuildFinder::findMatchedBuilds()` → `BuildFinder::findInstalledVersions()` (returns versions without the "php-" prefix).
4. Removed the unnecessary exception from `BuildFinder::findInstalledBuilds()`. The non-existing php directory isn't a more exceptional situation than the empty directory (which doesn't result in an exception).
@morozov morozov self-assigned this Dec 19, 2019
@morozov morozov added this to the Release 1.25.0 milestone Dec 19, 2019
@morozov morozov merged commit 579661c into phpbrew:master Dec 19, 2019
@morozov morozov deleted the remove-get-installed-php-versions branch December 19, 2019 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

0