From 3452b4e1d93773b6fc4dc20d04f53095f38347f1 Mon Sep 17 00:00:00 2001
From: Shivam Mathur <shivam_jpr@hotmail.com>
Date: Mon, 25 Nov 2024 20:42:32 +0000
Subject: [PATCH] Mark PHP 8.4 as default in scripts

---
 scripts/Get-Php.ps1        | 2 +-
 scripts/Get-PhpNightly.ps1 | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/Get-Php.ps1 b/scripts/Get-Php.ps1
index 3713d8e..530cd52 100644
--- a/scripts/Get-Php.ps1
+++ b/scripts/Get-Php.ps1
@@ -24,7 +24,7 @@ param (
   [string] $Path,
   [Parameter(Mandatory = $false, Position = 4, HelpMessage = 'The PHP version')]
   [ValidateLength(1, [int]::MaxValue)]
-  [string] $Version = '8.3'
+  [string] $Version = '8.4'
 )
 
 Function Get-File {
diff --git a/scripts/Get-PhpNightly.ps1 b/scripts/Get-PhpNightly.ps1
index b80c976..73abf78 100644
--- a/scripts/Get-PhpNightly.ps1
+++ b/scripts/Get-PhpNightly.ps1
@@ -24,7 +24,7 @@ param (
   [string] $Path,
   [Parameter(Mandatory = $false, Position = 4, HelpMessage = 'The PHP version')]
   [ValidateLength(1, [int]::MaxValue)]
-  [string] $Version = '8.3'
+  [string] $Version = '8.4'
 )
 
 Function Get-File {
@@ -67,7 +67,7 @@ $ts = '-nts'
 if($ThreadSafe) {
   $ts = ''
 }
-if($Version -match '8.[0-3]') {
+if($Version -match '8.[0-4]') {
   Install-Php -Version $Version -Architecture $Architecture -ThreadSafe $ThreadSafe -InstallVC -Path $Path -TimeZone UTC -InitialPhpIni Production -Force
 } else {
   $file = "php-$Version.0-dev$ts-Win32-vs17-$Architecture.zip"