Skip to content

Commit

Permalink
Add support for php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Dec 15, 2022
1 parent 07fae7a commit 787fe2f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion INSTALL.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
> Sometimes you need to restart your terminal for the link to have effect.
5. Install Composer using anyway you like, suggested is using `brew install composer`.
6. Install Valet+ with Composer using `composer global require weprovide/valet-plus:2.4.0-beta5 --update-with-dependencies`.
6. Install Valet+ with Composer using `composer global require weprovide/valet-plus:2.4.0-beta6 --update-with-dependencies`.
7. Add `export PATH="$PATH:$HOME/.composer/vendor/bin"` to `.bash_profile` (for bash) or `.zshrc` (for zsh) depending on
your shell (`echo $SHELL`).
8. Run the `valet install` command. Optionally add `--with-mariadb` to use MariaDB instead of MySQL This will configure and install Valet+ and DnsMasq, and register Valet's daemon to launch when your system starts.
Expand Down
5 changes: 5 additions & 0 deletions cli/Valet/Pecl.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Exception;
use DomainException;

/**
* @deprecated
*/
class Pecl extends AbstractPecl
{

Expand Down Expand Up @@ -43,6 +46,7 @@ class Pecl extends AbstractPecl
*/
const EXTENSIONS = [
self::XDEBUG_EXTENSION => [
'8.2' => '3.1.5',
'8.1' => '3.1.5',
'8.0' => '3.1.5',
'7.4' => '3.1.5',
Expand All @@ -63,6 +67,7 @@ class Pecl extends AbstractPecl
'extension_type' => self::NORMAL_EXTENSION_TYPE
],
self::GEOIP_EXTENSION => [
'8.2' => false, //todo; will probably be 1.1.2
'8.1' => false, //todo; will probably be 1.1.2
'8.0' => false, //todo; will probably be 1.1.2
'7.4' => '1.1.1',
Expand Down
5 changes: 4 additions & 1 deletion cli/Valet/PhpFpm.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ class PhpFpm
const PHP_V74_VERSION = '7.4';
const PHP_V80_VERSION = '8.0';
const PHP_V81_VERSION = '8.1';
const PHP_V82_VERSION = '8.2';

const SUPPORTED_PHP_FORMULAE = [
self::PHP_V71_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V71_VERSION,
self::PHP_V72_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V72_VERSION,
self::PHP_V73_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V73_VERSION,
self::PHP_V74_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V74_VERSION,
self::PHP_V80_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V80_VERSION,
self::PHP_V81_VERSION => self::PHP_FORMULA_NAME
self::PHP_V81_VERSION => self::PHP_FORMULA_NAME .'@'. self::PHP_V81_VERSION,
self::PHP_V82_VERSION => self::PHP_FORMULA_NAME
];

const EOL_PHP_VERSIONS = [
Expand Down Expand Up @@ -150,6 +152,7 @@ public function fpmConfigPath()
{
$brewPath = $this->architecture->getBrewPath();
$confLookup = [
self::PHP_V82_VERSION => $brewPath . self::LOCAL_PHP_FOLDER . '8.2/php-fpm.d/www.conf',
self::PHP_V81_VERSION => $brewPath . self::LOCAL_PHP_FOLDER . '8.1/php-fpm.d/www.conf',
self::PHP_V80_VERSION => $brewPath . self::LOCAL_PHP_FOLDER . '8.0/php-fpm.d/www.conf',
self::PHP_V74_VERSION => $brewPath . self::LOCAL_PHP_FOLDER . '7.4/php-fpm.d/www.conf',
Expand Down
2 changes: 1 addition & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Container::setInstance(new Container);

// get current version based on git describe and tags
$version = new Version('2.4.0-beta5', __DIR__ . '/../');
$version = new Version('2.4.0-beta6', __DIR__ . '/../');

$app = new Application('Valet+', $version->getVersion());

Expand Down

0 comments on commit 787fe2f

Please sign in to comment.