mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-25 17:32:28 +01:00
* 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
13 lines
300 B
PHP
13 lines
300 B
PHP
--TEST--
|
|
MongoDB\Driver\WriteConcernError cannot be extended
|
|
--FILE--
|
|
<?php
|
|
|
|
class MyWriteConcernError extends MongoDB\Driver\WriteConcernError {}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
Fatal error: Class MyWriteConcernError %s final class %SMongoDB\Driver\WriteConcernError%S in %s on line %d
|