Skip to content

Commit f8af37e

Browse files
committed
initialize php 8.3 support
1 parent feb4561 commit f8af37e

File tree

6 files changed

+68
-2
lines changed

6 files changed

+68
-2
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
php: 8.2
4040
extensions: amqp,apcu,ast,bcmath,bz2,calendar,core,ctype,curl,date,dom,enchant,exif,fileinfo,filter,ftp,gd,gettext,gmp,hash,iconv,igbinary,imagick,imap,intl,json,ldap,libxml,lzf,mbstring,mcrypt,memcache,memcached,msgpack,mysqli,oauth,oci8,opcache,openssl,pcntl,pcre,pdo,pgsql,phar,posix,raphf,pecl_http,readline,redis,reflection,session,shmop,simplexml,sockets,solr,spl,sqlite3,ssh2-beta,standard,sysvmsg,sysvsem,sysvshm,tokenizer,uuid,xdebug,xhprof,xml,xmldiff,xmlreader,xmlwriter,xsl,yac,zip,zlib
4141
tools: phpunit:10.2
42+
-
43+
os: ubuntu-22.04
44+
php: 8.3
45+
extensions: amqp,apcu,ast,bcmath,bz2,calendar,core,ctype,curl,date,dom,enchant,exif,fileinfo,filter,ftp,gd,gettext,gmp,hash,iconv,igbinary,imagick,imap,intl,json,ldap,libxml,lzf,mbstring,mcrypt,memcache,memcached,msgpack,mysqli,oauth,oci8,opcache,openssl,pcntl,pcre,pdo,pgsql,phar,posix,raphf,pecl_http,readline,redis,reflection,session,shmop,simplexml,sockets,solr,spl,sqlite3,ssh2-beta,standard,sysvmsg,sysvsem,sysvshm,tokenizer,uuid,xdebug,xhprof,xml,xmldiff,xmlreader,xmlwriter,xsl,yac,zip,zlib
46+
tools: phpunit:10.4
4247

4348
name: Test DB References
4449

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[
2+
{
3+
"rel_version": "8.3.0alpha1",
4+
"rel_date": "2023-06-08",
5+
"rel_state": "alpha",
6+
"php_min": "8.3.0alpha1"
7+
},
8+
{
9+
"rel_version": "8.3.0alpha2",
10+
"rel_date": "2023-06-22",
11+
"rel_state": "alpha",
12+
"php_min": "8.3.0alpha2"
13+
},
14+
{
15+
"rel_version": "8.3.0alpha3",
16+
"rel_date": "2023-07-06",
17+
"rel_state": "alpha",
18+
"php_min": "8.3.0alpha3"
19+
},
20+
{
21+
"rel_version": "8.3.0beta1",
22+
"rel_date": "2023-07-20",
23+
"rel_state": "beta",
24+
"php_min": "8.3.0beta1"
25+
},
26+
{
27+
"rel_version": "8.3.0beta2",
28+
"rel_date": "2023-08-03",
29+
"rel_state": "beta",
30+
"php_min": "8.3.0beta2"
31+
},
32+
{
33+
"rel_version": "8.3.0beta3",
34+
"rel_date": "2023-08-17",
35+
"rel_state": "beta",
36+
"php_min": "8.3.0beta3"
37+
},
38+
{
39+
"rel_version": "8.3.0RC1",
40+
"rel_date": "2023-08-31",
41+
"rel_state": "beta",
42+
"php_min": "8.3.0RC1"
43+
},
44+
{
45+
"rel_version": "8.3.0RC2",
46+
"rel_date": "2023-09-14",
47+
"rel_state": "beta",
48+
"php_min": "8.3.0RC2"
49+
},
50+
{
51+
"rel_version": "8.3.0RC3",
52+
"rel_date": "2023-09-28",
53+
"rel_state": "beta",
54+
"php_min": "8.3.0RC3"
55+
}
56+
]

src/Application/Command/Init/InitHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class InitHandler implements CommandHandlerInterface
4646
private const RETURN_CODE_DISTRIBUTION_PLATFORM_EXISTS = 110;
4747
private const RETURN_CODE_DATABASE_READONLY = 120;
4848
private const PHP_RELEASES_7 = ['70', '71', '72', '73', '74'];
49-
private const PHP_RELEASES_8 = ['80', '81', '82'];
49+
private const PHP_RELEASES_8 = ['80', '81', '82', '83'];
5050
private JsonFileHandler $jsonFileHandler;
5151
private DistributionRepository $distributionRepository;
5252
private EntityManagerInterface $entityManager;

src/Application/Command/Release/ReleaseHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ final class ReleaseHandler implements CommandHandlerInterface
4343
'80' => ExtensionVersionProviderInterface::LATEST_PHP_8_0,
4444
'81' => ExtensionVersionProviderInterface::LATEST_PHP_8_1,
4545
'82' => ExtensionVersionProviderInterface::LATEST_PHP_8_2,
46+
'83' => ExtensionVersionProviderInterface::LATEST_PHP_8_3,
4647
];
4748
private JsonFileHandler $jsonFileHandler;
4849
private string $refDir;

src/Domain/Factory/ExtensionVersionProviderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ interface ExtensionVersionProviderInterface
2828
public const LATEST_PHP_8_0 = '8.0.30';
2929
public const LATEST_PHP_8_1 = '8.1.24';
3030
public const LATEST_PHP_8_2 = '8.2.11';
31+
public const LATEST_PHP_8_3 = '8.3.0RC3';
3132
}

src/Domain/Factory/ExtensionVersionProviderTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ protected function getLatestPhpVersion(string $phpVersion = PHP_VERSION): string
162162
if (version_compare($phpVersion, '8.2', 'lt')) {
163163
return ExtensionVersionProviderInterface::LATEST_PHP_8_1;
164164
}
165-
return ExtensionVersionProviderInterface::LATEST_PHP_8_2;
165+
if (version_compare($phpVersion, '8.3', 'lt')) {
166+
return ExtensionVersionProviderInterface::LATEST_PHP_8_2;
167+
}
168+
return ExtensionVersionProviderInterface::LATEST_PHP_8_3;
166169
}
167170
}

0 commit comments

Comments
 (0)