-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PHP 8.2/8.3 warnings and deprecations
- Loading branch information
Showing
4 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,7 +334,7 @@ function field($n) | |
{ | ||
return oneof(isset($_POST['in']) ? | ||
htmlspecialchars(isset($_POST['in'][$n]) ? $_POST['in'][$n] : '') : null, | ||
htmlspecialchars($GLOBALS['bug'][$n])); | ||
htmlspecialchars($GLOBALS['bug'][$n] ?? '')); | ||
} | ||
|
||
/** | ||
|
@@ -656,7 +656,7 @@ function ($value) { | |
|
||
|
||
foreach ($bug_groups as $key => $bug_group) { | ||
echo "<optgroup label=\"${bug_group[0]}\"" . | ||
echo "<optgroup label=\"{$bug_group[0]}\"" . | ||
(($bug_group[1]) ? $disabled_style : ''), "\n>"; | ||
|
||
array_unshift($bug_group[2], $key); | ||
|
@@ -1240,7 +1240,7 @@ function get_package_mail($package_name, $bug_id = false, $bug_type = 'Bug') | |
// Security problems *always* go to the sec team | ||
$to[] = $secBugEmail; | ||
foreach ($security_distro_people as $user) { | ||
$to[] = "${user}@php.net"; | ||
$to[] = "{$user}@php.net"; | ||
} | ||
$params = '-f [email protected]'; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters