Home
last modified time | relevance | path

Searched refs:Stringable (Results 1 – 25 of 26) sorted by relevance

12

/php-src/Zend/tests/
H A Dstringable_automatic_implementation.phpt2 Stringable is automatically implemented
12 var_dump(new Test instanceof Stringable);
21 var_dump(new Test2 instanceof Stringable);
29 string(10) "Stringable"
34 string(10) "Stringable"
H A Dstringable_internal_class.phpt2 Stringable should be automatically implemented for internal classes
8 // _ZendTestClass defines __toString() but does not explicitly implement Stringable.
10 var_dump($obj instanceof Stringable);
H A Dstringable_trait.phpt2 Bug #81582: Stringable not implicitly declared if __toString() came from a trait
22 var_dump(new C instanceof Stringable);
23 var_dump(new C2 instanceof Stringable);
25 // The traits themselves should not implement Stringable -- traits cannot implement interfaces.
H A Dinterface_with_tostring.phpt17 string(10) "Stringable"
/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_type_error8.phpt6 public const stdClass&Stringable CONST1 = C;
7 public const stdClass&Stringable CONST2 = A::CONST1;
37 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
38 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
39 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
40 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
H A Dtyped_class_constants_inheritance_success2.phpt5 class S implements Stringable {
16 public const S|Stringable CONST3 = S;
25 public const S&Stringable CONST4 = Z;
26 public const (S&Stringable)|null CONST5 = Z;
H A Dtyped_class_constants_type_error7.phpt6 public const stdClass&Stringable CONST1 = C;
24 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
25 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
H A Dtyped_class_constants_type_success2.phpt9 public const B&Stringable CONST4 = C;
10 public const (B&Stringable)|null CONST5 = C;
13 class B implements Stringable {
/php-src/Zend/tests/type_declarations/variance/
H A Dstringable.phpt2 Automatic Stringable implementation participates in variance
7 public function test(): Stringable {}
/php-src/ext/standard/tests/http/http_build_query/
H A Dhttp_build_query_object_key_val_stringable.phpt11 return "Stringable";
H A Dhttp_build_query_object_just_stringable.phpt7 return "Stringable";
/php-src/ext/tokenizer/tests/
H A DPhpToken_toString.phpt11 var_dump($tokens[0] instanceof Stringable);
/php-src/Zend/tests/return_types/
H A Dnever_tostring.phpt6 class A implements Stringable {
/php-src/ext/tokenizer/
H A Dtokenizer.stub.php15 class PhpToken implements Stringable
/php-src/ext/standard/tests/serialize/
H A Dunserialize_allowed_classes_option_stringable_value.phpt2 Test unserialize() with Stringable object in allowed_classes
/php-src/Zend/
H A Dzend_interfaces.stub.php64 interface Stringable interface
H A Dzend_exceptions.stub.php7 interface Throwable extends Stringable
/php-src/sapi/cli/tests/
H A D005.phpt40 string(2232) "Class [ <internal:Core> class Exception implements Stringable, Throwable ] {
133 Method [ <internal:Core, prototype Stringable> public method __toString ] {
/php-src/ext/simplexml/
H A Dsimplexml.stub.php12 class SimpleXMLElement implements Stringable, Countable, RecursiveIterator
/php-src/ext/spl/tests/
H A Dclass_implements_variation1.phpt182 ["Stringable"]=>
183 string(10) "Stringable"
/php-src/ext/bcmath/
H A Dbcmath.stub.php54 final readonly class Number implements \Stringable
/php-src/ext/spl/
H A Dspl_directory.stub.php6 class SplFileInfo implements Stringable
H A Dspl_iterators.stub.php210 class CachingIterator extends IteratorIterator implements ArrayAccess, Countable, Stringable
/php-src/ext/reflection/
H A Dphp_reflection.stub.php15 interface Reflector extends Stringable
713 abstract class ReflectionType implements Stringable
/php-src/ext/reflection/tests/
H A DReflectionClass_toString_001.phpt12 Class [ <internal:Reflection> class ReflectionClass implements Stringable, Reflector ] {
48 Method [ <internal:Reflection, prototype Stringable> public method __toString ] {

Completed in 46 milliseconds

12