Skip to content

Commit ce46a4a

Browse files
Merge v2.1 into v2.x (#1875)
2 parents a2732d9 + 986ce2c commit ce46a4a

14 files changed

+11
-21
lines changed

.github/actions/windows/prepare-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
steps:
2323
- name: Setup PHP SDK
2424
id: setup-php
25-
uses: php/setup-php-sdk@v0.10
25+
uses: php/setup-php-sdk@v0.11
2626
with:
2727
version: ${{ inputs.version }}
2828
arch: ${{ inputs.arch }}

.github/workflows/package-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ jobs:
9898
fail-fast: false
9999
matrix:
100100
# Note: keep this in sync with the Windows matrix in tests.yml
101-
php: [ "8.1", "8.2", "8.3", "8.4" ]
101+
php: [ "8.1", "8.2", "8.3", "8.4", "8.5" ]
102102
arch: [ x64, x86 ]
103103
ts: [ ts, nts ]

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- "8.2"
2626
- "8.3"
2727
- "8.4"
28+
- "8.5"
2829
mongodb-version:
2930
- "6.0"
3031
topology:
@@ -125,7 +126,7 @@ jobs:
125126
fail-fast: false
126127
matrix:
127128
# Note: keep this in sync with the Windows matrix in package-release.yml
128-
php: [ "8.1", "8.2", "8.3", "8.4" ]
129+
php: [ "8.1", "8.2", "8.3", "8.4", "8.5" ]
129130
arch: [ x64, x86 ]
130131
ts: [ ts, nts ]
131132

tests/bson/bson-decimal128-002.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ MongoDB\BSON\Decimal128 NaN values
44
<?php
55

66
$tests = [
7-
acos(8),
8-
NAN,
97
'nan',
108
'Nan',
119
'NaN',
@@ -24,6 +22,4 @@ NaN
2422
NaN
2523
NaN
2624
NaN
27-
NaN
28-
NaN
2925
===DONE===

tests/bson/bson-decimal128-004.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ MongoDB\BSON\Decimal128 debug handler
44
<?php
55

66
$tests = [
7-
1234.5678,
8-
NAN,
9-
INF,
7+
'1234.5678',
8+
'NAN',
9+
'INF',
1010
];
1111

1212
foreach ($tests as $test) {

tests/bson/bson-decimal128-serialization-002.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ MongoDB\BSON\Decimal128 serialization (__serialize and __unserialize)
66
$tests = [
77
'1234.5678',
88
'-1234.5678',
9-
1234.56e-78,
10-
INF,
11-
NAN,
9+
'1234.56e-78',
10+
'INF',
11+
'NAN',
1212
];
1313

1414
foreach ($tests as $value) {

tests/exception/bulkwriteexception-haserrorlabel-001.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $labels = ['test', 'foo'];
99
$reflection = new ReflectionClass($exception);
1010

1111
$resultDocumentProperty = $reflection->getProperty('errorLabels');
12-
$resultDocumentProperty->setAccessible(true);
1312
$resultDocumentProperty->setValue($exception, $labels);
1413

1514
var_dump($exception->hasErrorLabel('foo'));

tests/exception/bulkwriteexception-haserrorlabel_error-001.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $labels = 'shouldBeAnArray';
99
$reflection = new ReflectionClass($exception);
1010

1111
$resultDocumentProperty = $reflection->getProperty('errorLabels');
12-
$resultDocumentProperty->setAccessible(true);
1312
$resultDocumentProperty->setValue($exception, $labels);
1413

1514
var_dump($exception->hasErrorLabel('bar'));

tests/exception/commandexception-getresultdocument-001.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $resultDocument = (object) ['x' => 1];
99
$reflection = new ReflectionClass($exception);
1010

1111
$resultDocumentProperty = $reflection->getProperty('resultDocument');
12-
$resultDocumentProperty->setAccessible(true);
1312
$resultDocumentProperty->setValue($exception, $resultDocument);
1413

1514
var_dump($resultDocument === $exception->getResultDocument());

tests/exception/commandexception-haserrorlabel-001.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $labels = ['test', 'foo'];
99
$reflection = new ReflectionClass($exception);
1010

1111
$resultDocumentProperty = $reflection->getProperty('errorLabels');
12-
$resultDocumentProperty->setAccessible(true);
1312
$resultDocumentProperty->setValue($exception, $labels);
1413

1514
var_dump($exception->hasErrorLabel('foo'));

0 commit comments

Comments
 (0)