Skip to content

Commit 3142ea1

Browse files
committed
Fix PHP/8.x warnings
1 parent 7040c3a commit 3142ea1

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/TgDatabase/Criterion/LogicalExpression.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class LogicalExpression implements Criterion {
99

10+
public $op;
11+
public $criterions;
12+
1013
public function __construct($op, ...$criterions) {
1114
$this->op = $op;
1215
if ((count($criterions) == 1) and is_array($criterions[0])) {

src/TgDatabase/Criterion/QueryImpl.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212

1313
class QueryImpl implements Query {
1414

15+
public $database;
16+
public $tableName;
17+
public $resultClassName;
18+
public $alias;
19+
public $columns;
20+
public $subqueries;
21+
public $groupBy;
22+
public $having;
23+
public $criterions;
24+
public $orders;
25+
public $firstResult;
26+
public $maxResults;
27+
1528
public function __construct($database, $tableName, $resultClassName = NULL, $alias = NULL) {
1629
$this->database = $database;
1730
$this->tableName = $tableName;

src/TgDatabase/Criterion/SimpleExpression.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
class SimpleExpression implements Criterion {
99

10+
public $propertyName;
11+
public $value;
12+
public $op;
13+
public $ignoreCase;
14+
1015
public function __construct($propertyName, $value, $op, $ignoreCase = FALSE) {
1116
$this->propertyName = $propertyName;
1217
$this->value = $value;

0 commit comments

Comments
 (0)