Home
last modified time | relevance | path

Searched refs:B (Results 126 – 150 of 988) sorted by relevance

12345678910>>...40

/php-src/Zend/tests/type_declarations/intersection_types/variance/
H A Dinvalid2.phpt7 interface B {}
9 class Test implements A, B {}
12 public function foo(): A&B {
17 /* This fails because just A larger than A&B */
26 Fatal error: Declaration of FooChild::foo(): array must be compatible with Foo::foo(): A&B in %s on…
H A Dinvalid_covariance_drop_type1.phpt7 interface B {}
9 class Test implements A, B {}
12 public function foo(): A&B {
17 /* This fails because just A larger than A&B */
26 Fatal error: Declaration of FooChild::foo(): A must be compatible with Foo::foo(): A&B in %s on lin…
H A Dinvalid1.phpt7 interface B extends A {}
10 class Test implements B, C {}
13 public function foo(): B&C {
18 /* This fails because A is a parent type for B */
27 Fatal error: Declaration of FooChild::foo(): A&C must be compatible with Foo::foo(): B&C in %s on l…
/php-src/Zend/tests/
H A Dgh14009_005.phpt22 class B extends A {
31 (new B)->foo();
32 (new B)->bar();
37 B::foo -> B::T::test
H A Dbug66252.phpt8 class B extends A {
9 const BHW = parent::HW . " extended by B";
11 const C = B::BHW;
15 this is A extended by B
H A Dbug46246.phpt20 class B extends A
29 $b = new B;
38 Hello from B
39 Hello from B
40 Hello from B
H A Duse_late_binding_conflict.phpt7 class B extends A {}
9 use Foo\B;
13 Fatal error: Cannot use Foo\B as B because the name is already in use in %s on line %d
H A Dget_class_vars_005.phpt11 class B extends A {
15 var_dump(get_class_vars('B'));
20 var_dump(get_class_vars('B'));
22 new B;
H A Dbug71428.3.phpt6 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 Deprecated: B::m(): Implicitly marking parameter $a as nullable is deprecated, the explicit nullabl…
12 Fatal error: Declaration of C::m(A $a, $n) must be compatible with B::m(?A $a, $n) in %sbug71428.3.…
H A Dbug33171.phpt10 class B extends A
12 private $c = "B's c";
23 $x = new B;
27 c => B's c
/php-src/Zend/tests/lazy_objects/
H A DskipLazyInitialization.phpt30 class B extends A {
43 $reflector = new ReflectionClass(B::class);
107 $reflector = new ReflectionClass(B::class);
136 $reflector = new ReflectionClass(B::class);
161 getValue(): Error: Cannot access private property B::$priv
164 getValue(): Error: Cannot access private property B::$priv
185 getValue(): Error: Cannot access protected property B::$prot
188 getValue(): Error: Cannot access protected property B::$prot
258 getValue(): Error: Cannot access private property B::$priv
261 getValue(): Error: Cannot access private property B::$priv
[all …]
/php-src/ext/pcre/tests/
H A Dpreg_filter.phpt6 $subject = array('1', 'a', '2', 'b', '3', 'A', 'B', '4');
8 $replace = array('A:$0', 'B:$0', 'C:$0');
18 string(5) "B:C:a"
22 string(3) "B:b"
/php-src/ext/reflection/tests/
H A DReflectionMethod_getDeclaringClass_basic.phpt10 class B extends A {
14 $methodInfo = new ReflectionMethod('B', 'foo');
17 $methodInfo = new ReflectionMethod('B', 'bar');
28 string(1) "B"
H A Dbug53915.phpt8 const B = self::A;
17 const B = self::A;
21 print_r($rc->getConstant('B'));
27 [B] => 1
/php-src/Zend/tests/named_params/
H A Dcall_user_func_array.phpt14 call_user_func_array($test, ['A', 'B']);
15 call_user_func_array($test, [1 => 'A', 0 => 'B']);
32 call_user_func_array($test, ['A', 'B']);
33 call_user_func_array($test, [1 => 'A', 0 => 'B']);
50 a = A, b = B, c = c
51 a = A, b = B, c = c
62 a = A, b = B, c = c
63 a = A, b = B, c = c
/php-src/tests/classes/
H A Dconstants_basic_003.phpt6 class B
19 var_dump(B::$a);
20 var_dump(B::$c);
21 var_dump(B::ca);
22 var_dump(B::cc);
/php-src/ext/standard/tests/
H A Dforward_static_call_array.phpt24 class B extends A {
26 const NAME = 'B';
36 B::test('foo');
39 B
40 B more,args
/php-src/ext/mbstring/tests/
H A Dmb_encode_mimeheader_basic4.phpt21 var_dump(mb_encode_mimeheader("?", "ASCII", "B"));
25 var_dump(mb_encode_mimeheader("=", "ASCII", "B"));
29 var_dump(mb_encode_mimeheader("_", "ASCII", "B"));
36 var_dump(mb_encode_mimeheader(" ", "ASCII", "B"));
145 string(16) "=?UTF-8?B?Pw==?="
146 string(19) "=?US-ASCII?B?Pw==?="
148 string(19) "=?US-ASCII?B?PQ==?="
150 string(19) "=?US-ASCII?B?Xw==?="
152 string(19) "=?US-ASCII?B?fw==?="
164 string(21) "o =?US-ASCII?B?AA==?="
[all …]
/php-src/Zend/tests/traits/
H A Dstatic_003.phpt19 class B extends A {
20 protected static $test = "Test B";
23 echo B::test();
27 Test B
/php-src/Zend/tests/type_declarations/dnf_types/
H A Dgh9516.phpt2 GH-9516: (A&B)|D as a param should allow AB or D. Not just A.
7 interface B { }
11 class B_ implements B {}
12 class AB_ implements A, B {}
16 public function method1((A&B)|D $arg): void {}
17 public function method2((B&A)|D $arg): void {}
18 public function method3(D|(A&B) $arg): void {}
19 public function method4(D|(B&A) $arg): void {}
142 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, A_ given, called in %s on line %d
143 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, B_ given, called in %s on line %d
[all …]
/php-src/Zend/tests/property_hooks/
H A Doverride_default_value.phpt10 class B extends A {
18 $b = new B();
27 object(B)#1 (1) {
32 object(B)#1 (1) {
/php-src/Zend/tests/type_declarations/dnf_types/variance/
H A Dinvalid_covariance_drop_type1.phpt7 interface B {}
10 class Test implements A, B {}
13 public function foo(): (A&B)|X {
18 /* This fails because just A larger than A&B */
27 Fatal error: Declaration of FooChild::foo(): A|X must be compatible with Foo::foo(): (A&B)|X in %s …
H A Dinvalid1.phpt7 interface B extends A {}
11 class Test implements B, C {}
14 public function foo(): (B&C)|X {
19 /* This fails because A is a parent type for B */
28 Fatal error: Declaration of FooChild::foo(): (A&C)|X must be compatible with Foo::foo(): (B&C)|X in…
/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_inheritance_success2.phpt21 class B extends A {
32 var_dump(B::CONST1);
33 var_dump(B::CONST2);
34 var_dump(B::CONST3);
35 var_dump(B::CONST4);
36 var_dump(B::CONST5);
/php-src/ext/reflection/tests/property_hooks/
H A DReflectionProperty_getHook_inheritance.phpt17 class B extends A {
20 return 'B::$foo';
26 $b = new B();
30 echo ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($b)), "\n";
34 ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($b, null));
40 B::$foo

Completed in 19 milliseconds

12345678910>>...40