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.
2 parents f319419 + bd2a00a commit a37c926Copy full SHA for a37c926
Zend/tests/bug77652.inc
@@ -0,0 +1,6 @@
1
+<?php
2
+return [
3
+ 'I' => function() {
4
+ return new class implements I {};
5
+ },
6
+];
Zend/tests/bug77652.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #77652: Anonymous classes can lose their interface information
+--FILE--
+
+interface I {}
7
+require __DIR__ . '/bug77652.inc';
8
+$data = require __DIR__ . '/bug77652.inc';
9
+print_r(class_implements($data['I']()));
10
11
+?>
12
+--EXPECT--
13
+Array
14
+(
15
+ [I] => I
16
+)
0 commit comments