com web/bugs: Upgrade to PHP 7.3: composer.json composer.lock www/fix.php
| From: | Peter Kokot | Date: | Mon, 20 May 2019 23:34:00 +0000 |
| Subject: | com web/bugs: Upgrade to PHP 7.3: composer.json composer.lock www/fix.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28047@lists.php.net to get a copy of this message | ||
Commit: 1c9eef526724d1ea42381eabfcfe7a649bf592b6
Author: Peter Kokot <peterkokot@gmail.com> Tue, 21 May 2019 01:34:00 +0200
Parents: f762db348dc0ef698bdbd3cd4c95530b1266e027
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=1c9eef526724d1ea42381eabfcfe7a649bf592b6
Log:
Upgrade to PHP 7.3
Application now also support PHP 7.3 as a minimum for future code
changes.
Changed paths:
M composer.json
M composer.lock
M www/fix.php
Diff:
diff --git a/composer.json b/composer.json
index c32eeda..64ea11e 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,7 @@
"rss": "https://bugs.php.net/rss"
},
"require": {
- "php": "^7.2",
+ "php": "^7.3",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-mbstring": "*",
diff --git a/composer.lock b/composer.lock
index 63aa327..c2e6783 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "dba2ed92613c9c0acb06a57f86464228",
+ "content-hash": "17ababe7c83360ac61eb5e7adc7d9024",
"packages": [],
"packages-dev": [
{
@@ -1487,7 +1487,7 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": "^7.2",
+ "php": "^7.3",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-mbstring": "*",
diff --git a/www/fix.php b/www/fix.php
index 4a11487..1c0d36e 100644
--- a/www/fix.php
+++ b/www/fix.php
@@ -43,7 +43,7 @@ $reasonRepository = $container->get(ReasonRepository::class);
list($RESOLVE_REASONS, $FIX_VARIATIONS) = $reasonRepository->findByProject($site);
// Handle reason / comments
-$reason = filter_var($_REQUEST['r'], FILTER_SANITIZE_STRING);
+$reason = isset($_REQUEST['r']) ? filter_var($_REQUEST['r'],
FILTER_SANITIZE_STRING) : '';
$ncomment = isset($_POST['ncomment']) ? trim($_POST['ncomment']) :
'';
if (!$reason || !isset($RESOLVE_REASONS[$reason])) {