Skip to content

Commit b27fa4d

Browse files
authored
PHPC-1965 Re-enable PHP 8.1 build on GH Actions (#1258)
* Re-enable PHP 8.1 build on GH Actions * Work around different error wording in PHP 8.1 * Limit failing tests to PHP < 8.1 * Add tests for PHPC-1839 for PHP >= 8.1
1 parent f663761 commit b27fa4d

35 files changed

+260
-32
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
php-version:
2626
- "7.4"
2727
- "8.0"
28-
# Re-enable after PHPC-1849 is resolved
29-
# - "8.1"
28+
- "8.1"
3029
mongodb-version:
3130
- "4.4"
3231
topology:

tests/bson/bson-binary_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyBinary extends MongoDB\BSON\Binary {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyBinary may not inherit from final class (MongoDB\BSON\Binary) in %s on line %d
12+
Fatal error: Class MyBinary %s final class %SMongoDB\BSON\Binary%S in %s on line %d

tests/bson/bson-dbpointer_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyDBPointer extends MongoDB\BSON\DBPointer {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyDBPointer may not inherit from final class (MongoDB\BSON\DBPointer) in %s on line %d
12+
Fatal error: Class MyDBPointer %s final class %SMongoDB\BSON\DBPointer%S in %s on line %d

tests/bson/bson-decimal128_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyDecimal128 extends MongoDB\BSON\Decimal128 {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyDecimal128 may not inherit from final class (MongoDB\BSON\Decimal128) in %s on line %d
12+
Fatal error: Class MyDecimal128 %s final class %SMongoDB\BSON\Decimal128%S in %s on line %d

tests/bson/bson-int64_error-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyInt64 extends MongoDB\BSON\Int64 {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyInt64 may not inherit from final class (MongoDB\BSON\Int64) in %s on line %d
12+
Fatal error: Class MyInt64 %s final class %SMongoDB\BSON\Int64%S in %s on line %d

tests/bson/bson-javascript_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyJavascript extends MongoDB\BSON\Javascript {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyJavascript may not inherit from final class (MongoDB\BSON\Javascript) in %s on line %d
12+
Fatal error: Class MyJavascript %s final class %SMongoDB\BSON\Javascript%S in %s on line %d

tests/bson/bson-maxkey_error-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyMaxKey extends MongoDB\BSON\MaxKey {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyMaxKey may not inherit from final class (MongoDB\BSON\MaxKey) in %s on line %d
12+
Fatal error: Class MyMaxKey %s final class %SMongoDB\BSON\MaxKey%S in %s on line %d

tests/bson/bson-minkey_error-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyMinKey extends MongoDB\BSON\MinKey {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyMinKey may not inherit from final class (MongoDB\BSON\MinKey) in %s on line %d
12+
Fatal error: Class MyMinKey %s final class %SMongoDB\BSON\MinKey%S in %s on line %d

tests/bson/bson-objectid_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyObjectId extends MongoDB\BSON\ObjectId {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyObjectId may not inherit from final class (MongoDB\BSON\ObjectId) in %s on line %d
12+
Fatal error: Class MyObjectId %s final class %SMongoDB\BSON\ObjectId%S in %s on line %d

tests/bson/bson-regex_error-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class MyRegex extends MongoDB\BSON\Regex {}
99
===DONE===
1010
<?php exit(0); ?>
1111
--EXPECTF--
12-
Fatal error: Class MyRegex may not inherit from final class (MongoDB\BSON\Regex) in %s on line %d
12+
Fatal error: Class MyRegex %s final class %SMongoDB\BSON\Regex%S in %s on line %d

0 commit comments

Comments
 (0)