Browse Source

Fixed:warning

Jinhui Zhu 7 years ago
parent
commit
a020cc8cb3
3 changed files with 9 additions and 10 deletions
  1. 8 1
      src/Library/QrCode/QRconst.php
  2. 0 8
      src/Library/QrCode/QRspec.php
  3. 1 1
      src/Request/Url/Base.php

+ 8 - 1
src/Library/QrCode/QRconst.php

@@ -70,4 +70,11 @@ define('QR_FIND_FROM_RANDOM', 2);
 define('QR_DEFAULT_MASK', 2);                                                               // when QR_FIND_BEST_MASK === false
 
 define('QR_PNG_MAXIMUM_SIZE', 1024);                                                       // maximum allowed png image width (in pixels), tune to make sure GD and PHP can handle such big images
-                                                  
+
+define('QRSPEC_VERSION_MAX', 40);
+define('QRSPEC_WIDTH_MAX', 177);
+
+define('QRCAP_WIDTH', 0);
+define('QRCAP_WORDS', 1);
+define('QRCAP_REMINDER', 2);
+define('QRCAP_EC', 3);                                               

+ 0 - 8
src/Library/QrCode/QRspec.php

@@ -32,14 +32,6 @@ namespace QrCode;
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-define('QRSPEC_VERSION_MAX', 40);
-define('QRSPEC_WIDTH_MAX', 177);
-
-define('QRCAP_WIDTH', 0);
-define('QRCAP_WORDS', 1);
-define('QRCAP_REMINDER', 2);
-define('QRCAP_EC', 3);
-
 class QRspec
 {
 

+ 1 - 1
src/Request/Url/Base.php

@@ -310,7 +310,7 @@ abstract class Base
         $paramArray = explode($this->_symbol, $query);
         $this->pathArgs = $v = $this->decodeArgs($paramArray);
         //添加系统扩展名到返回数组中 2011-10-14 15:26
-		$this->sysfileExtension = $extension[2];
+		$this->sysfileExtension = $extension[2] ?? '';
         if ($_GET) $v = array_merge($v, $_GET);
         if ($key != '' || is_int($key)) {
             return $v[$key];