Searched refs:class (Results 226 – 250 of 4639) sorted by relevance
12345678910>>...186
6 class NewCtor {16 class ExtendsNewCtor extends NewCtor {22 class X {31 class Y extends X {33 echo "\nInherited method of the same name as the class:\n";48 Inherited method of the same name as the class:
5 class C1 {10 class C2 extends C1 {15 $class = new ReflectionClass("C2");16 var_dump($class->getDefaultProperties());
11 class Qux {15 var_dump((new ReflectionClassConstant(Foo::class, 'Bar'))->isEnumCase());16 var_dump((new ReflectionClassConstant(Foo::class, 'Baz'))->isEnumCase());17 var_dump((new ReflectionClassConstant(Qux::class, 'Quux'))->isEnumCase());
11 (new class() {57 ["class"]=>58 string(%d) "class@anonymous%s"60 object(class@anonymous)#%d (0) {76 ["class"]=>77 string(%d) "class@anonymous%s"79 object(class@anonymous)#1 (0) {
8 class A0 {}9 class B0 extends A0 {}10 abstract class A1 {}11 class B1 extends A1 {}22 class C0 implements I0 {}23 class C1 implements I1, I3 {}24 class C2 extends C1 {}25 class C3 extends C2 implements I1 {}26 class C4 extends C3 implements I2 {}27 class C5 extends C4 implements I7 {}[all …]
5 class A {12 class B {19 class C {26 $reflectionClassA = new ReflectionClass(A::class);29 $reflectionClassB = new ReflectionClass(B::class);32 $reflectionClassC = new ReflectionClass(C::class);
6 class Bar {40 Notice: Object of class Bar could not be converted to int in %s on line %d43 Notice: Object of class Bar could not be converted to int in %s on line %d46 Notice: Object of class Bar could not be converted to int in %s on line %d49 Notice: Object of class Bar could not be converted to int in %s on line %d52 Notice: Object of class Bar could not be converted to float in %s on line %d55 Notice: Object of class Bar could not be converted to float in %s on line %d58 Notice: Object of class Bar could not be converted to int in %s on line %d
2 Testing class_alias() with abstract class using an arbitrary class name as alias6 abstract class foo { }16 Fatal error: Uncaught Error: Cannot instantiate abstract class foo in %s:%d
2 GH-10377 (Unable to have an anonymous readonly class) - usage variation: dynamic properties attribu…6 $readonly_anon = new #[AllowDynamicProperties] readonly class {15 Fatal error: Cannot apply #[AllowDynamicProperties] to readonly class class@anonymous in %s on line…
5 class A {10 class B {14 class C extends A {42 [class] => B54 [class] => B
2 Bug #81631: ::class with dynamic class name may yield wrong line number6 var_dump($b::class);11 Fatal error: Uncaught TypeError: Cannot use "::class" on null in %s:3
2 GH-10709: Recursive class constant evaluation6 class B {10 spl_autoload_register(function ($class) {11 class A { const C = "A"; }
15 spl_autoload_register(function ($class) {16 if (!require_once($class.'.inc')) {17 error_log('Error: Autoload class: '.$class.' not found!');
2 Delayed early binding throws class redeclaration error7 class Foo {}10 var_dump(class_exists(Bar::class));13 Fatal error: Cannot declare class Bar, because the name is already in use in %sdelayed_early_bindin…
2 Bug #30828 (debug_backtrace() reports incorrect class in overridden methods)5 class A {10 print $t['class'].$t['type'].$t['function']."\n";18 print $t['class'].$t['type'].$t['function']."\n";26 print $t['class'].$t['type'].$t['function']."\n";31 class B extends A {
5 class MyFileInfo extends SplFileInfo {11 class MyDoublyLinkedList extends SplDoublyLinkedList {17 class MyObjectStorage extends SplObjectStorage {23 class MyMultipleIterator extends MultipleIterator {29 class MyArrayObject extends ArrayObject {35 class MyArrayIterator extends ArrayIterator {41 class MyMaxHeap extends SplMaxHeap {47 class MyPriorityQueue extends SplPriorityQueue {
9 class fooUser { use foo; }12 class barUser { use bar; }14 class foobarUser { use foo, bar; }17 Traits are flattened into a class, and that semantics is nothing19 class fooViaBarUser extends barUser { use foo; }21 class fooExtended extends fooUser {}
9 spl_autoload_register(function ($class) {10 var_dump("Loading $class");11 eval('class Bar {}');14 class Foo
2 A redeclared class constant must have the same or higher visibility6 class A {10 class B extends A {15 Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 7
2 ZE2 A final class cannot be inherited6 final class base {14 class derived extends base {20 Fatal error: Class derived cannot extend final class base in %s on line %d
2 Basic class support - attempting to modify a class constant by assignment5 class aclass10 echo "\nTrying to modify a class constant directly - should be parse error.\n";
2 Basic class support - attempting to create a reference to a class constant5 class aclass10 echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
2 A redeclared class constant must have the same or higher visibility6 class A {10 class B extends A {15 Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on…
33 // unknown class40 // class not derived from PDOStatement41 class myclass {54 class mystatement extends PDOStatement {69 class mystatement2 extends PDOStatement {79 class mystatement3 extends PDOStatement {89 class mystatement4 extends PDOStatement {101 class mystatement5 extends mystatement4 {140 PDO::ATTR_STATEMENT_CLASS class must be a valid class141 PDO::ATTR_STATEMENT_CLASS class must be a valid class[all …]
2 Bug #76539 (Trait attribute is set incorrectly when using self::class with another string)6 protected $attr = self::class . 'Test';13 class A {17 class B {
Completed in 40 milliseconds