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