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