Procházet zdrojové kódy

up one php to 8.1 (#7785)

* up php to 8.1

* up php to 8.1

* Support 8.1 version

* Support 8.2 version

* Support 8.2 version

* set tag
vic před 2 roky
rodič
revize
316536c23d

+ 5 - 0
frameworks/PHP/one/App/Model/Fortune.php

@@ -11,4 +11,9 @@ class Fortune extends Model
     protected $_pri_key = 'id';
 
     protected $_cache_time = 0;
+
+    public int $id;
+
+    public string $message;
+
 }

+ 5 - 0
frameworks/PHP/one/App/Model/World.php

@@ -11,4 +11,9 @@ class World extends Model
     protected $_pri_key = 'id';
 
     protected $_cache_time = 0;
+
+    public int $id;
+
+    public int $randomNumber;
+
 }

+ 1 - 1
frameworks/PHP/one/composer.json

@@ -17,7 +17,7 @@
   ],
   "require": {
     "php": ">=7.1.0",
-    "lizhichao/one": ">=2.0.1",
+    "lizhichao/one": ">=2.3.1",
     "ext-json": "*"
   },
   "autoload": {