Re: [RFC] Scalar Type Hints
| From: | Thomas Bley | Date: | Thu, 01 Jan 2015 17:46:12 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80066@lists.php.net to get a copy of this message | ||
when looking into phpdoc, e.g. http://de.php.net/substr we
have string and int everywhere in function definitions, do you want to change the whole
documentation?
Regards
Thomas
Levi Morrison wrote on 01.01.2015 18:19:
> On Thu, Jan 1, 2015 at 9:44 AM, Thomas Bley <mails@thomasbley.de> wrote:
>> I think it is no problem to add strict parameter type hints with another rfc
>> (if this rfc gets accepted), e.g. function foobar(string! $str, int! $str){}
>> or any other syntax.
>>
>
> I would rather have it the other way around.
string $str is
> strict
> and some other syntax (notably (string) $str or
> @string $str) can
> be loose.
>