Home
last modified time | relevance | path

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

12345678910>>...31

/PHP-8.1/Zend/tests/
H A Dns_091.phpt9 class B { function __construct() {echo __METHOD__,"\n";} }
13 use Foo\Bar\{ A, Baz\B };
15 new B;
20 Foo\Bar\Baz\B::__construct
H A Dbug48215.phpt15 class B extends A
27 $b = new B();
31 B::__construct
33 B::A
H A Dlsb_024.phpt13 class B extends A {
14 protected static $value = 'B';
20 B::out();
24 B
H A Dns_060.phpt6 use Bar\A as B;
8 $a = new B;
13 use Foo\A as B;
14 $a = 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 Fatal error: Declaration of C::m(A $a, $n) must be compatible with B::m(?A $a, $n) in %sbug71428.3.…
/PHP-8.1/ext/reflection/tests/
H A DReflectionClass_isInstance_basic.phpt6 class B extends A {}
13 $classes = array("A", "B", "C", "I", "X");
16 "myB" => new B,
36 is myA a B? bool(false)
37 is myB a B? bool(true)
38 is myC a B? bool(false)
39 is myX a B? bool(false)
H A DReflectionClass_getNamespaceName.phpt5 namespace A\B;
15 $function = new \ReflectionClass('A\\B\\Foo');
27 string(7) "A\B\Foo"
28 string(3) "A\B"
H A DReflectionFunction_getNamespaceName.phpt5 namespace A\B;
14 $function = new \ReflectionFunction('A\\B\\foo');
26 string(7) "A\B\foo"
27 string(3) "A\B"
/PHP-8.1/tests/classes/
H A Dproperty_override_privateStatic_private.phpt14 class B extends A
16 private $p = "B::p";
26 $b = new B;
33 B::p
H A Dproperty_override_privateStatic_protected.phpt14 class B extends A
16 protected $p = "B::p";
26 $b = new B;
33 B::p
H A Dproperty_override_privateStatic_public.phpt14 class B extends A
16 public $p = "B::p";
26 $b = new B;
33 B::p
H A Dconstants_visibility_004.phpt10 class B extends A {
18 B::checkConstants();
24 Fatal error: Uncaught Error: Undefined constant B::Z in %s:%d
26 #0 %s(15): B::checkConstants()
H A Dproperty_override_protectedStatic_private.phpt14 class B extends A
16 private $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_protectedStatic_protected.phpt14 class B extends A
16 protected $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_protectedStatic_public.phpt14 class B extends A
16 public $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_private.phpt14 class B extends A
16 private $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_protected.phpt14 class B extends A
16 protected $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_publicStatic_public.phpt14 class B extends A
16 public $p = "B::p";
26 $b = new B;
31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
H A Dproperty_override_public_private.phpt14 class B extends A
16 private $p = "B::p";
27 $b = new B;
32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
H A Dproperty_override_public_protected.phpt14 class B extends A
16 protected $p = "B::p";
27 $b = new B;
32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
/PHP-8.1/sapi/phpdbg/tests/
H A Dinfo_002.phpt12 >00010: print B;
18 %s 1 int B
25 const B = C::D * A;
31 print B;
/PHP-8.1/Zend/tests/type_declarations/union_types/variance/
H A Dvalid.phpt14 public function method2(B|string $a): A|string {}
15 public function method3(Y|B $a): X|A {}
18 class B extends A {
23 public function method2(A|string $a): B|string {}
24 public function method3(A|X $a): B|Y {}
/PHP-8.1/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error3.phpt11 } else if ($class == 'B') {
12 class B extends A {
25 public function method(): B {}
34 $b = new B;
38 Fatal error: Declaration of R::method(): A must be compatible with Q::method(): B in %s on line %d
H A Dloading_exception2.phpt15 class B extends A implements I {
25 // Tie up B in a variance obligation.
30 public function test(): B {}
34 // Fallback to fatal error, as we can't unlink class B anymore.
36 class B extends A implements I, J {
47 Fatal error: During inheritance of B with variance dependencies: Uncaught Exception: Class I does n…
/PHP-8.1/Zend/tests/type_declarations/intersection_types/
H A Dparameter.phpt7 interface B {}
9 class Foo implements A, B {}
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

Completed in 25 milliseconds

12345678910>>...31