Home
last modified time | relevance | path

Searched refs:A (Results 151 – 175 of 1588) sorted by relevance

12345678910>>...64

/PHP-8.2/Zend/tests/
H A Dlsb_021.phpt5 class A {
11 class B extends A {
21 A::test();
22 call_user_func("A::test");
23 call_user_func(array("A", "test"));
57 A
58 A
59 A
H A Dbug69832.phpt7 public $foo = [Bar::A, __CLASS__][__CLASS__ != ""];
8 public $bar = Bar::A && __CLASS__;
9 public $baz = Bar::A ?: __CLASS__;
10 public $buzz = Bar::A ? __CLASS__ : 0;
15 const A = 1;
H A Dbug71428.3.phpt5 class A { }
6 class B { public function m(A $a = NULL, $n) { echo "B.m";} };
7 class C extends B { public function m(A $a , $n) { echo "C.m";} };
10 Fatal error: Declaration of C::m(A $a, $n) must be compatible with B::m(?A $a, $n) in %sbug71428.3.…
H A Dclosure_043.phpt9 $staticUnscoped = static function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
11 class A {
14 return static function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
18 $staticScoped = A::getStaticClosure();
29 $d = $staticUnscoped->bindTo(new A, null);
30 $d = $staticScoped->bindTo(new A, null);
33 $d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n";
37 $d = $staticUnscoped->bindTo(new A, 'A');
38 $d = $staticScoped->bindTo(new A, 'A');
H A Dbug54624.phpt5 class A
7 function foo(A $param) {
12 class_alias('A', 'AliasA');
15 class B extends A
/PHP-8.2/Zend/tests/type_declarations/intersection_types/
H A Dparameter.phpt6 interface A {}
9 class Foo implements A, B {}
10 class Bar implements A {}
12 function foo(A&B $bar) {
28 foo(): Argument #1 ($bar) must be of type A&B, Bar given, called in %s on line %d
H A Dadded_interface_intersection_type.phpt10 class A implements X, Y, Z {}
17 return new A();
28 $a = new A();
35 object(A)#1 (0) {
38 object(A)#3 (0) {
/PHP-8.2/Zend/tests/enum/
H A Dno-write-properties-cache-slot.phpt7 case A;
17 Test::A->modify();
21 var_dump(Test::A->name);
25 string(1) "A"
27 string(1) "A"
/PHP-8.2/Zend/tests/traits/
H A Dbug60165d.phpt8 trait A {}
15 use A, B {
16 A::bar insteadof B;
21 Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line …
/PHP-8.2/Zend/tests/prop_const_expr/
H A Ddefault_args.phpt6 enum A: string {
11 $name = A::B->name,
12 $value = A::B->value,
13 $nameNullsafe = A::B?->name,
14 $valueNullsafe = A::B?->value,
H A Dproperty_initializer.phpt6 enum A: int {
11 public string $d = A::B->name;
12 public int $e = A::B->value;
13 public string $f = A::B?->name;
14 public int $g = A::B?->value;
H A Dstatic_property_initializer.phpt6 enum A: int {
11 public static string $d = A::B->name;
12 public static int $e = A::B->value;
13 public static string $f = A::B?->name;
14 public static int $g = A::B?->value;
H A Denum_initializer.phpt6 enum A: string {
11 case E = A::B->name;
12 case F = A::B->value;
16 case H = A::B?->name;
17 case I = A::B?->value;
/PHP-8.2/ext/reflection/tests/
H A Dbug43926.phpt11 class A extends D {
14 class C extends A {
17 $ra = new ReflectionClass('A');
27 print("Is? A ". ($ra->isInstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof A) ? …
32 print("Is? A ". ($ra->isInstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof A) ? …
37 print("Is? A ". ($ra->isInstance($cd) ? 'true' : 'false') .", instanceof: ". (($cd instanceof A) ? …
42 print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof A) ? …
49 Is? A true, instanceof: true
54 Is? A true, instanceof: true
59 Is? A false, instanceof: false
[all …]
H A DReflectionClass_getProperty_004.phpt8 class A {
18 class B extends A {
75 showInfo("A::pubC");
76 showInfo("A::protC");
77 showInfo("A::privC");
103 string(1) "A"
105 string(9) "pubA in A"
111 string(1) "A"
165 string(1) "A"
173 string(1) "A"
[all …]
H A Dbug64239.phpt5 class A {
13 class B extends A{
28 [class] => A
34 [class] => A
41 [class] => A
/PHP-8.2/tests/classes/
H A Dproperty_override_protectedStatic_protected.phpt5 class A
7 protected static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_private.phpt5 class A
7 public static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_protected.phpt5 class A
7 public static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_public.phpt5 class A
7 public static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_public_private.phpt5 class A
7 public $p = "A::p";
14 class B extends A
24 $a = new A;
32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
H A Dproperty_override_protectedStatic_private.phpt5 class A
7 protected static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_protectedStatic_public.phpt5 class A
7 protected static $p = "A::p (static)";
14 class B extends A
24 A::showA();
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_public_protected.phpt5 class A
7 public $p = "A::p";
14 class B extends A
24 $a = new A;
32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
/PHP-8.2/Zend/tests/generators/
H A Dnested_method_calls.phpt6 class A {
8 echo "Called A::foo\n";
22 $g1 = gen(new A);
33 Called A::foo
34 Called A::foo

Completed in 23 milliseconds

12345678910>>...64