note 124295 added to functions.arguments

From: Date: Tue, 15 Oct 2019 08:42:06 +0000
Subject: note 124295 added to functions.arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-212652@lists.php.net to get a copy of this message
If class have __toString method then his methods may set return type 'string' and return self: <?php class Str { public function getAsString(): string { return $this; } public function getAsObject(): self { return $this; } public function __toString() { return get_class($this); } } ?> ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 80.247.45.247) ---- Manual Page -- http://php.net/manual/en/functions.arguments.php Edit -- https://master.php.net/note/edit/124295 Del: integrated -- https://master.php.net/note/delete/124295/integrated Del: useless -- https://master.php.net/note/delete/124295/useless Del: bad code -- https://master.php.net/note/delete/124295/bad+code Del: spam -- https://master.php.net/note/delete/124295/spam Del: non-english -- https://master.php.net/note/delete/124295/non-english Del: in docs -- https://master.php.net/note/delete/124295/in+docs Del: other reasons-- https://master.php.net/note/delete/124295 Reject -- https://master.php.net/note/reject/124295 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212652) next »