Skip to content

Commit fe981ee

Browse files
committed
feat(php): Change match class name to rMatch to prevent conflict with php match function
1 parent 3132fb1 commit fe981ee

23 files changed

+422
-336
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">=5.3.0"
22+
"php": "^8.3.0"
2323
},
2424
"require-dev": {
2525
"phpunit/phpunit": "~4.8",

rdb/Datum/ArrayDatum.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
namespace r\Datum;
44

55
use r\DatumConverter;
6-
use r\Datum\Datum;
76
use r\ValuedQuery\MakeArray;
8-
use r\Datum\ArrayDatum;
97
use r\Exceptions\RqlDriverError;
108

119
class ArrayDatum extends Datum

rdb/Datum/BoolDatum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Datum;
44

5-
use r\Datum\Datum;
65
use r\Exceptions\RqlDriverError;
76

87
class BoolDatum extends Datum

rdb/Datum/NullDatum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Datum;
44

5-
use r\Datum\Datum;
65
use r\Exceptions\RqlDriverError;
76

87
class NullDatum extends Datum

rdb/Datum/NumberDatum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Datum;
44

5-
use r\Datum\Datum;
65
use r\Exceptions\RqlDriverError;
76

87
class NumberDatum extends Datum

rdb/Datum/ObjectDatum.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Datum;
44

5-
use r\Datum\Datum;
65
use r\DatumConverter;
76
use r\Exceptions\RqlDriverError;
87

@@ -15,7 +14,7 @@ public function encodeServerRequest()
1514
$val = $val->encodeServerRequest();
1615
unset($val);
1716
}
18-
return (Object)$jsonValue;
17+
return (object) $jsonValue;
1918
}
2019

2120
public static function decodeServerResponse($json)

rdb/Datum/StringDatum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Datum;
44

5-
use r\Datum\Datum;
65
use r\Exceptions\RqlDriverError;
76

87
class StringDatum extends Datum

rdb/Exceptions/RqlDriverError.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace r\Exceptions;
44

5-
use r\Exceptions\RqlException;
6-
75
class RqlDriverError extends RqlException
86
{
97
public function __construct($message, $code = 0)

rdb/Exceptions/RqlServerError.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace r\Exceptions;
44

5-
use r\Exceptions\RqlException;
6-
75
class RqlServerError extends RqlException
86
{
97

rdb/FunctionQuery/RFunction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace r\FunctionQuery;
44

55
use r\Query;
6-
use r\FunctionQuery\FunctionQuery;
76
use r\Datum\NumberDatum;
87
use r\Datum\ArrayDatum;
98
use r\ProtocolBuffer\TermTermType;

rdb/Ordering/Asc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Ordering;
44

5-
use r\Ordering\Ordering;
65
use r\ProtocolBuffer\TermTermType;
76

87
class Asc extends Ordering

rdb/Ordering/Desc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace r\Ordering;
44

5-
use r\Ordering\Ordering;
65
use r\ProtocolBuffer\TermTermType;
76

87
class Desc extends Ordering

rdb/ProtocolBuffer/DatumDatumType.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
class DatumDatumType
66
{
7-
const PB_R_ARRAY = 5;
8-
const PB_R_BOOL = 2;
9-
const PB_R_JSON = 7;
10-
const PB_R_NULL = 1;
11-
const PB_R_NUM = 3;
12-
const PB_R_OBJECT = 6;
13-
const PB_R_STR = 4;
7+
const int PB_R_ARRAY = 5;
8+
const int PB_R_BOOL = 2;
9+
const int PB_R_JSON = 7;
10+
const int PB_R_NULL = 1;
11+
const int PB_R_NUM = 3;
12+
const int PB_R_OBJECT = 6;
13+
const int PB_R_STR = 4;
1414
}

rdb/ProtocolBuffer/FrameFrameType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
class FrameFrameType
66
{
7-
const PB_OPT = 2;
8-
const PB_POS = 1;
7+
const int PB_OPT = 2;
8+
const int PB_POS = 1;
99
}

rdb/ProtocolBuffer/QueryQueryType.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class QueryQueryType
66
{
7-
const PB_CONTINUE = 2;
8-
const PB_NOREPLY_WAIT = 4;
9-
const PB_SERVER_INFO = 5;
10-
const PB_START = 1;
11-
const PB_STOP = 3;
7+
const int PB_CONTINUE = 2;
8+
const int PB_NOREPLY_WAIT = 4;
9+
const int PB_SERVER_INFO = 5;
10+
const int PB_START = 1;
11+
const int PB_STOP = 3;
1212
}

rdb/ProtocolBuffer/ResponseResponseNote.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class ResponseResponseNote
66
{
7-
const PB_ATOM_FEED = 2;
8-
const PB_INCLUDES_STATES = 5;
9-
const PB_ORDER_BY_LIMIT_FEED = 3;
10-
const PB_SEQUENCE_FEED = 1;
11-
const PB_UNIONED_FEED = 4;
7+
const int PB_ATOM_FEED = 2;
8+
const int PB_INCLUDES_STATES = 5;
9+
const int PB_ORDER_BY_LIMIT_FEED = 3;
10+
const int PB_SEQUENCE_FEED = 1;
11+
const int PB_UNIONED_FEED = 4;
1212
}

rdb/ProtocolBuffer/ResponseResponseType.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
class ResponseResponseType
66
{
7-
const PB_CLIENT_ERROR = 16;
8-
const PB_COMPILE_ERROR = 17;
9-
const PB_RUNTIME_ERROR = 18;
10-
const PB_SERVER_INFO = 5;
11-
const PB_SUCCESS_ATOM = 1;
12-
const PB_SUCCESS_PARTIAL = 3;
13-
const PB_SUCCESS_SEQUENCE = 2;
14-
const PB_WAIT_COMPLETE = 4;
7+
const int PB_CLIENT_ERROR = 16;
8+
const int PB_COMPILE_ERROR = 17;
9+
const int PB_RUNTIME_ERROR = 18;
10+
const int PB_SERVER_INFO = 5;
11+
const int PB_SUCCESS_ATOM = 1;
12+
const int PB_SUCCESS_PARTIAL = 3;
13+
const int PB_SUCCESS_SEQUENCE = 2;
14+
const int PB_WAIT_COMPLETE = 4;
1515
}

0 commit comments

Comments
 (0)