note 123247 added to datetime.format

From: Date: Wed, 24 Oct 2018 09:25:32 +0000
Subject: note 123247 added to datetime.format
Groups: php.notes 
Request: Send a blank email to php-notes+get-209490@lists.php.net to get a copy of this message
This doc has something that does not match. The description of the method is "public string DateTimeImmutable::format ( string $format )". But the return value is documented as "Returns the formatted date string on success or FALSE on failure." . What is correct now, is the return a string or mixed? My tests showed up to result in string, could not break it to receive bool. So is this internally casted to string? Then you should adapt the return documentation. ---- Server IP: 208.43.231.9 Probable Submitter: 194.158.242.190 ---- Manual Page -- http://php.net/manual/en/datetime.format.php Edit -- https://master.php.net/note/edit/123247 Del: integrated -- https://master.php.net/note/delete/123247/integrated Del: useless -- https://master.php.net/note/delete/123247/useless Del: bad code -- https://master.php.net/note/delete/123247/bad+code Del: spam -- https://master.php.net/note/delete/123247/spam Del: non-english -- https://master.php.net/note/delete/123247/non-english Del: in docs -- https://master.php.net/note/delete/123247/in+docs Del: other reasons-- https://master.php.net/note/delete/123247 Reject -- https://master.php.net/note/reject/123247 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209490) next »