Searched refs:class (Results 451 – 475 of 4833) sorted by relevance
1...<<11121314151617181920>>...194
/php-src/Zend/tests/ |
H A D | magic_methods_inheritance_rules_non_trivial_02.phpt | 2 Magic Methods inheritance rules on a non-trivial class hierarchy 5 class A { 9 class B extends A { 13 class C extends B {
|
H A D | bug38772.phpt | 5 class A { 16 class B extends A { 22 class C extends A { 28 class D extends A {
|
H A D | bug70958.phpt | 2 Bug #70958 (Invalid opcode while using ::class as trait method parameter default value) 7 function bar($a = self::class) { 12 class B {
|
H A D | access_modifiers_013.phpt | 2 Prevent abstract and final in the same class declaration 6 final abstract class C { 12 Fatal error: Cannot use the final modifier on an abstract class in %s on line %d
|
H A D | errmsg_030.phpt | 2 errmsg: cannot use 'self' as parent class name 6 class test extends self { 12 Fatal error: Cannot use 'self' as class name, as it is reserved in %s on line %d
|
H A D | errmsg_031.phpt | 2 errmsg: cannot use 'parent' as parent class name 6 class test extends parent { 12 Fatal error: Cannot use 'parent' as class name, as it is reserved in %s on line %d
|
H A D | gh10377_2.phpt | 2 GH-10377 (Unable to have an anonymous readonly class) - usage variation: abstract modifier 6 $x = new abstract class {}; 10 Fatal error: Cannot use the abstract modifier on an anonymous class in %s on line %d
|
H A D | gh10377_3.phpt | 2 GH-10377 (Unable to have an anonymous readonly class) - usage variation: final modifier 6 $x = new final class {}; 10 Fatal error: Cannot use the final modifier on an anonymous class in %s on line %d
|
H A D | objects_009.phpt | 8 class test { 12 class test2 extends test { 16 class test3 extends test {
|
H A D | bug45742.phpt | 2 Bug #45742 Wrong class array inpretetion using constant indexes 5 class Constants { 11 class ArrayProperty {
|
H A D | gh13097_a.phpt | 2 GH-13097 (Anonymous class reference in trigger_error / thrown Exception) 6 $anonymous = new class(){}; 15 Fatal error: class@anonymous%s ...now you don't! in %s on line %d
|
/php-src/Zend/tests/closures/ |
H A D | closure_from_callable_lsb.phpt | 6 class A { 8 var_dump(static::class); 12 class B extends A {
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_class_constants_type_error1.phpt | 2 Typed class constants (type mismatch; simple) 5 class A { 10 Fatal error: Cannot use int as value for class constant A::CONST1 of type string in %s on line %d
|
H A D | scalar_reserved7.phpt | 2 Scalar type names cannot be used as class, trait or interface names (7) 7 class int {} 10 Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d
|
H A D | typed_class_constants_type_error12.phpt | 2 Typed class constants with static in union 5 class A { 9 class B {}
|
H A D | typed_properties_006.phpt | 5 class Foo { 9 class Bar extends Foo { 14 Fatal error: Type of Bar::$qux must be int (as in class Foo) in %s on line 6
|
H A D | typed_properties_008.phpt | 5 class Foo { 9 class Bar extends Foo { 14 Fatal error: Type of Bar::$qux must be int (as in class Foo) in %s on line 6
|
/php-src/Zend/tests/attributes/ |
H A D | 023_ast_node_in_validation.phpt | 7 class A1 { } 10 class Bar { } 13 var_dump((new ReflectionClass(Bar::class))->getAttributes()[0]->newInstance());
|
/php-src/ext/opcache/tests/ |
H A D | bug69688.phpt | 13 eval('class A{} class B{} class C{}');
|
/php-src/Zend/tests/anon/ |
H A D | 011.phpt | 2 Ensure proper inheritance with get_class(anon class instance) used via class_alias (see also bug #7… 6 class_alias(get_class(new class { protected $foo = 1; }), "AnonBase"); 7 var_dump((new class extends AnonBase {
|
/php-src/ext/standard/tests/general_functions/ |
H A D | bug35229.phpt | 5 class test2 { 11 spl_autoload_register(function ($class) { 12 eval('class test1 extends test2 {}');
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionMethod_basic2.phpt | 2 ReflectionMethod class __toString() method 6 function reflectMethod($class, $method) { 7 $methodInfo = new ReflectionMethod($class, $method); 9 echo "Reflecting on method $class::$method()\n\n"; 15 class TestClass 34 class DerivedClass extends TestClass {} 118 Parameter #0 [ <required> object|string $class ]
|
H A D | ReflectionFunction_getClosureCalledClass.phpt | 5 class A { 7 echo static::class.'::'.$name, "\n"; 11 echo static::class.'->'.$name, "\n"; 15 echo static::class.'::b', "\n"; 20 echo static::class.'->c', "\n"; 25 echo static::class.'::{closure}'."\n"; 30 class B extends A {}
|
/php-src/ext/tokenizer/tests/ |
H A D | attributes.phpt | 8 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }'); 15 $class = $tokens[2]; 16 var_dump($class[1]);
|
/php-src/Zend/tests/traits/ |
H A D | inheritance002.phpt | 2 Trait method overriddes base class method 7 class Base { 19 class MyHelloWorld extends Base {
|
Completed in 46 milliseconds
1...<<11121314151617181920>>...194