Searched refs:class (Results 251 – 275 of 5331) sorted by relevance
1...<<11121314151617181920>>...214
2 class name as scalar from ::class keyword error using static non class context6 $x = static::class;
2 class name as scalar from ::class keyword error using parent in non class context6 $x = parent::class;
2 Bug #33277 (private method accessed by child class)5 class foo {11 class fooson extends foo {17 class foo2son extends fooson {
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…
2 Delayed early binding throws class redeclaration error7 class Foo {}10 var_dump(class_exists(Bar::class));13 Fatal error: Cannot redeclare class Bar (previously declared in %sdelayed_early_binding_redeclarati…
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!');
5 $class = new ReflectionClass('DateTime');6 $method = $class->getMethod('setTime');18 $class = new ReflectionClass('DateTimeZone');19 $method = $class->getMethod('getTransitions');31 $class = new ReflectionClass('DateTimeZone');32 $method = $class->getMethod('listIdentifiers');
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() {40 string(%d) "class@anonymous%s::a"59 ["class"]=>60 string(%d) "class@anonymous%s"62 object(class@anonymous)#%d (0) {80 ["class"]=>81 string(%d) "class@anonymous%s"83 object(class@anonymous)#1 (0) {
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…
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
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 {
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
8 $dom = DOM\XMLDocument::createFromString('<root class="test1 test2"/>');32 <root class="test2"/>34 <root class="test2"/>36 <root class=""/>38 <root class="test3"/>
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 27 milliseconds