1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

List syntax (#529)

List (array destructuring) assignment should be declared using the configured syntax.
This commit is contained in:
Mathias Reker ⚡️
2023-08-29 12:20:33 +02:00
committed by GitHub
parent 1561230ae7
commit fd62baa267
3 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ ERROR;
$sites = ["php.net", "lists.php.net"];
// Get data from the URL
list($none, $site, $token, $sender) = explode("/", $_SERVER["PATH_INFO"]);
[$none, $site, $token, $sender] = explode("/", $_SERVER["PATH_INFO"]);
// Error in input data
if ($sender == "" || strlen($token) < 32 || !isset($sites[$site])) {