Skip to content

Commit 88a3565

Browse files
committed
chore: Fix composer.json syntax
1 parent 524b457 commit 88a3565

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
},
2626
"require": {
2727
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
28-
"ext-SimpleXML": "*",
2928
"ext-ctype": "*",
3029
"ext-curl": "*",
3130
"ext-dom": "*",
@@ -36,6 +35,7 @@
3635
"ext-libxml": "*",
3736
"ext-mbstring": "*",
3837
"ext-openssl": "*",
38+
"ext-simplexml": "*",
3939
"christian-riesen/base32": "1.6.0",
4040
"claviska/simpleimage": "4.4.0",
4141
"composer/semver": "3.4.4",
@@ -52,13 +52,13 @@
5252
"symfony/polyfill-php72": "*"
5353
},
5454
"suggest": {
55-
"ext-PDO": "Support for using databases",
5655
"ext-apcu": "Support for the Apcu cache driver",
5756
"ext-exif": "Support for exif information from images",
5857
"ext-fileinfo": "Improved mime type detection for files",
5958
"ext-imagick": "Improved thumbnail generation",
6059
"ext-intl": "Improved i18n number formatting",
6160
"ext-memcached": "Support for the Memcached cache driver",
61+
"ext-pdo": "Support for using databases",
6262
"ext-redis": "Support for the Redis cache driver",
6363
"ext-sodium": "Support for the crypto class and more robust session handling",
6464
"ext-zip": "Support for ZIP archive file functions",
@@ -82,7 +82,7 @@
8282
},
8383
"optimize-autoloader": true,
8484
"platform": {
85-
"php": "8.2.0"
85+
"php": "8.3.0"
8686
},
8787
"platform-check": false
8888
},

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cms/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected function transformUserSingle(
213213
$result = $this->transformModel($addressProp, User::class, 'name', 'email');
214214

215215
$address = array_keys($result)[0] ?? null;
216-
$name = $address !== null ? ($result[$address] ?? null) : null;
216+
$name = $result[$address ?? ''] ?? null;
217217

218218
// if the array is non-associative, the value is the address
219219
if (is_int($address) === true) {

src/Panel/Panel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public static function router(string|null $path = null): Response|null
321321
$auth = $route->attributes()['auth'] ?? true;
322322
$areaId = $route->attributes()['area'] ?? null;
323323
$type = $route->attributes()['type'] ?? 'view';
324-
$area = $areaId !== null ? ($areas[$areaId] ?? null) : null;
324+
$area = $areas[$areaId ?? ''] ?? null;
325325

326326
// call the route action to check the result
327327
try {

0 commit comments

Comments
 (0)