Searched refs:__toString (Results 1 – 25 of 345) sorted by relevance
12345678910>>...14
/PHP-8.2/tests/classes/ |
H A D | tostring_001.phpt | 2 ZE2 __toString() 12 function __toString() 95 test2::__toString() 100 test2::__toString() 103 test2::__toString() 106 test2::__toString() 111 test2::__toString() 112 test2::__toString() 115 test2::__toString() 117 test2::__toString() [all …]
|
H A D | tostring_004.phpt | 12 echo "Object with no __toString():\n"; 29 echo "\n\nObject with bad __toString():\n"; 31 function __toString() { 54 Object with no __toString(): 63 Object with bad __toString(): 65 badToString::__toString(): Return value must be of type string, array returned 69 badToString::__toString(): Return value must be of type string, array returned
|
/PHP-8.2/ext/spl/tests/ |
H A D | bug62328.phpt | 2 Bug #62328 (cast_object takes precedence over __toString) 10 public function __toString() 12 return '__toString'; 19 echo (string)$fi->__toString() . PHP_EOL; 23 __toString 24 __toString
|
H A D | bug64023.phpt | 2 Bug #64023: Overloading __toString() in SplFileInfo has no effect 7 public function __toString() {return ' -expected- ';} 13 echo $a, $a->__toString(), $a->__toString() . '', "\n"; 15 // Does not work - outputs parent::__toString()
|
H A D | iterator_003.phpt | 2 SPL: CachingIterator and __toString() 17 public function __toString() 83 // generated by a call to __toString(). To check this we need to access the 84 // iterator's __toString() method. 87 echo $it->__toString(), "\n";
|
/PHP-8.2/ext/reflection/tests/ |
H A D | ReflectionMethod_basic2.phpt | 2 ReflectionMethod class __toString() method 10 echo "__toString():\n"; 11 var_dump($methodInfo->__toString()); 54 __toString(): 64 __toString(): 74 __toString(): 84 __toString(): 94 __toString(): 104 __toString(): 114 __toString(): [all …]
|
H A D | ReflectionProperty_basic1.phpt | 2 Test usage of ReflectionProperty methods __toString(), getName(), isPublic(), isPrivate(), isProtec… 10 echo "__toString():\n"; 11 var_dump($propInfo->__toString()); 50 __toString(): 72 __toString(): 94 __toString(): 112 __toString():
|
H A D | ReflectionMethod_constructor_error1.phpt | 20 print $e->__toString(); 26 print $e->__toString(); 32 print $e->__toString(); 38 print $e->__toString(); 44 print $e->__toString(); 50 print $e->__toString(); 56 print $e->__toString(); 62 print $e->__toString();
|
H A D | bug80190.phpt | 28 … print ' $method->getReturnType()->__toString() returns ' . $method->getReturnType() . PHP_EOL; 51 $method->getReturnType()->__toString() returns self 55 $method->getReturnType()->__toString() returns stdClass|self 61 $method->getReturnType()->__toString() returns static 65 $method->getReturnType()->__toString() returns stdClass|static
|
H A D | ReflectionClassConstant_basic1.phpt | 2 Test usage of ReflectionClassConstant methods __toString(), getName(), getValue(), isPublic(), isPr… 11 echo "__toString():\n"; 12 var_dump($constInfo->__toString()); 55 __toString(): 84 __toString(): 113 __toString(): 142 __toString(): 171 __toString():
|
H A D | gh16187.phpt | 2 GH-16187 (ReflectionClass::__toString() with unpacked properties) 10 $reflector->__toString();
|
/PHP-8.2/Zend/tests/ |
H A D | bug26166.phpt | 2 Bug #26166 (__toString() crash when no values returned) 8 function __toString() 23 function __toString() 25 return $this->obj->__toString(); 36 function __toString() { 51 function __toString() { 67 NoneTest::__toString(): Return value must be of type string, none returned
|
H A D | magic_methods_010.phpt | 2 Testing __toString() declaration with wrong modifier 7 static protected function __toString($a, $b) { 13 Fatal error: Method a::__toString() cannot take arguments in %s on line %d
|
H A D | stringable_trait_invalid.phpt | 2 __toString() from trait with invalid return type 7 public function __toString(): int { 14 Fatal error: T::__toString(): Return type must be string when declared in %s on line %d
|
H A D | gh14969.phpt | 2 GH-14969: Crash on coercion with throwing __toString() 7 public function __toString() { 38 C::__toString 43 C::__toString
|
H A D | bug70967.phpt | 2 Bug #70967 (Weird error handling for __toString when Error is thrown) 6 public function __toString() { 16 #0 %s(%d): A->__toString()
|
H A D | strlen.phpt | 2 Fixed execute_data corruption with __toString() 10 public function __toString() 29 public function __toString()
|
H A D | interface_with_tostring.phpt | 2 Interface with __toString() method 7 public function __toString(): string;
|
H A D | bug39445.phpt | 2 Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) 6 public function __toString() {
|
/PHP-8.2/ext/date/tests/ |
H A D | DateTime_extends_basic1.phpt | 16 public function __toString() 25 echo "\n-- Invoke __toString --\n"; 32 echo "\n-- Invoke __toString again --\n"; 41 -- Invoke __toString -- 46 -- Invoke __toString again --
|
H A D | DateTimeZone_extends_basic1.phpt | 13 public function __toString() 22 echo "\n-- Invoke __toString --\n"; 31 -- Invoke __toString --
|
/PHP-8.2/Zend/tests/enum/ |
H A D | __toString.phpt | 2 Enum __toString 9 public function __toString(): string { 16 Fatal error: Enum Foo cannot include magic method __toString in %s on line %d
|
/PHP-8.2/Zend/tests/return_types/ |
H A D | 036.phpt | 2 __toString can only declare string return type 6 public function __toString(): bool { 11 Fatal error: Foo::__toString(): Return type must be string when declared in %s on line %d
|
H A D | never_tostring.phpt | 2 never type of __toString method 7 public function __toString(): string { 13 public function __toString(): never {
|
/PHP-8.2/ext/simplexml/tests/ |
H A D | bug62328.phpt | 2 Bug #62328 (implementing __toString and a cast to string fails) 8 public function __toString() { 16 var_dump($xml->__toString());
|
Completed in 33 milliseconds
12345678910>>...14