Home
last modified time | relevance | path

Searched refs:class (Results 451 – 475 of 4799) sorted by relevance

1...<<11121314151617181920>>...192

/php-src/Zend/tests/
H A Derrmsg_030.phpt2 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 Derrmsg_031.phpt2 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 Dgh10377_2.phpt2 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 Dgh10377_3.phpt2 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 Dobjects_009.phpt8 class test {
12 class test2 extends test {
16 class test3 extends test {
H A Dbug45742.phpt2 Bug #45742 Wrong class array inpretetion using constant indexes
5 class Constants {
11 class ArrayProperty {
H A Dgh13097_a.phpt2 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 Dbug29689.phpt5 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 Dtyped_class_constants_type_error1.phpt2 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 Dscalar_reserved7.phpt2 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 Dtyped_class_constants_type_error12.phpt2 Typed class constants with static in union
5 class A {
9 class B {}
H A Dtyped_properties_006.phpt5 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 Dtyped_properties_008.phpt5 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 D023_ast_node_in_validation.phpt7 class A1 { }
10 class Bar { }
13 var_dump((new ReflectionClass(Bar::class))->getAttributes()[0]->newInstance());
H A D005_objects.phpt7 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 Dbug69688.phpt13 eval('class A{} class B{} class C{}');
/php-src/Zend/tests/anon/
H A D011.phpt2 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 Dbug35229.phpt5 class test2 {
11 spl_autoload_register(function ($class) {
12 eval('class test1 extends test2 {}');
/php-src/ext/reflection/tests/
H A DReflectionMethod_basic2.phpt2 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 DReflectionFunction_getClosureCalledClass.phpt5 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 Dconstructor_promotion.phpt6 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 Dattributes.phpt8 $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 Dinheritance002.phpt2 Trait method overriddes base class method
7 class Base {
19 class MyHelloWorld extends Base {
/php-src/Zend/tests/constants/final_constants/
H A Dfinal_const2.phpt2 Final class constants cannot be overridden
6 class Foo
11 class Bar extends Foo
/php-src/Zend/tests/type_declarations/union_types/
H A Dinheritance.phpt6 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