Skip to content

Commit 316536c

Browse files
authored
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
1 parent d247312 commit 316536c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

frameworks/PHP/one/App/Model/Fortune.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ class Fortune extends Model
1111
protected $_pri_key = 'id';
1212

1313
protected $_cache_time = 0;
14+
15+
public int $id;
16+
17+
public string $message;
18+
1419
}

frameworks/PHP/one/App/Model/World.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ class World extends Model
1111
protected $_pri_key = 'id';
1212

1313
protected $_cache_time = 0;
14+
15+
public int $id;
16+
17+
public int $randomNumber;
18+
1419
}

frameworks/PHP/one/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=7.1.0",
20-
"lizhichao/one": ">=2.0.1",
20+
"lizhichao/one": ">=2.3.1",
2121
"ext-json": "*"
2222
},
2323
"autoload": {

0 commit comments

Comments
 (0)