We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IMAPConnection
final
1 parent 7f1659a commit af68d4aCopy full SHA for af68d4a
ext/imap/php_imap.stub.php
@@ -1,7 +1,7 @@
1
<?php
2
3
/** @generate-function-entries */
4
-class IMAPConnection {
+final class IMAPConnection {
5
6
}
7
ext/imap/tests/imap_final.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Check that IMAPConnection is declared final
+--SKIPIF--
+<?php
+extension_loaded('imap') or die('skip imap extension not available in this build');
+--FILE--
8
+
9
+class T extends IMAPConnection {}
10
+--EXPECTF--
11
+Fatal error: Class T may not inherit from final class (IMAPConnection) in %s on line %d
0 commit comments