So, if I understand everything here correctly

```
interface Foo
{
  public function bar(Boo $Boo);
}
```

and

```
interface Foo
{
  /*
   * @param $Boo, pretty please accept type Boo here
   */
  public function bar($Boo);
}
```

will be equivalent in 7.2? :(

Regards,
Aidan

On 28 May 2017 at 16:49, Rowan Collins <rowan.coll...@gmail.com> wrote:

> On 28/05/2017 14:25, Rasmus Schultz wrote:
>
>> With an explicit mixed type-hint, you can still achieve what you want
>>
>
> You are making a valid point in general, but you clearly haven't read or
> understood the explanations you've been given why an explicit mixed
> type-hint will NOT achieve what the authors of this RFC wanted.
>
> If an existing class implements a library's interface, or extends a
> library's base class, with no type hint, then the library currently has to
> break both backward and forward compatibility to add type hints: the user
> of the library will *have to* add the type hints to their implementation,
> and once they do so, they will *have to* require that minimum version of
> the library.
>
> If the user of the library has to add "mixed" to all their method
> signatures to use the now-type-hinted library, the library still has to
> declare a breaking change, so that feature would not help this use case,
> even if it would be better in others.
>
> Regards,
>
> --
> Rowan Collins
> [IMSoP]
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to