Searched refs:class (Results 451 – 475 of 4799) sorted by relevance
1...<<11121314151617181920>>...192
/php-src/Zend/tests/ |
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
|
H A D | bug29689.phpt | 5 class foo { 15 class bar extends foo { 25 class baz extends bar { 30 class bar2 extends foo { 38 class baz2 extends bar2 {
|
/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());
|
H A D | 005_objects.phpt | 7 class A1 60 class A3 76 class A4 { } 88 class A5 { } 111 string(30) "Attribute class "A2" not found" 114 string(48) "Attribute constructor of class A3 must be public" 117 string(69) "Attribute class A4 does not have a constructor, cannot pass arguments" 120 string(55) "Attempting to use non-attribute class "A5" as attribute"
|
/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 {}
|
H A D | constructor_promotion.phpt | 6 class Test { 16 $rc = new ReflectionClass(Test::class); 27 $rp = new ReflectionParameter([Test::class, '__construct'], 'y'); 29 $rp = new ReflectionParameter([Test::class, '__construct'], 'z'); 34 Class [ <user> class Test ] {
|
/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 {
|
/php-src/Zend/tests/constants/final_constants/ |
H A D | final_const2.phpt | 2 Final class constants cannot be overridden 6 class Foo 11 class Bar extends Foo
|
/php-src/Zend/tests/type_declarations/union_types/ |
H A D | inheritance.phpt | 6 class X { 14 class Y extends X { 25 class Z { 29 class U extends X { 33 class V extends X {
|
Completed in 30 milliseconds
1...<<11121314151617181920>>...192