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:
2
mod.php
2
mod.php
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user