On 26/05/2018 16:39, Pedro Magalhães wrote:
On Sat, May 26, 2018 at 3:04 PM, Rowan Collins
mailto:rowan.coll...@gmail.com>> wrote:
Note that this example also works in Java:
https://tio.run/##vZMxb9swEIVn61fcKKctbWctMhUIuhgomqIdigwn8mIxpUiDPNkpDP92hxJlW4rsIUBRQhP5@O670@MzbvDTs/pzOGAR2K
On Sat, May 26, 2018 at 3:04 PM, Rowan Collins
wrote:
>
> Note that this example also works in Java: https://tio.run/##vZMxb9swEIVn
> 61fcKKctbWctMhUIuhgomqIdigwn8mIxpUiDPNkpDP92hxJlW4rsIUBRQhP5
> @O670@MzbvDTs/pzOGAR2KNkkAZDgG9eS4JdBnGtvWOSTAqUqwtDsEFT0@f2
> LAnirpbpTt7XTDuHZnGpg2h34a7vsD/7nBhGFV
On 25.05.2018 at 19:47, Rowan Collins wrote:
> On 25 May 2018 13:29:41 BST, "Christoph M. Becker"
> wrote:
>>
>> I think we should discuss this on the internals@ mailing list. Perhaps
>> the current behavior is by design, and will “never” change.
>
> Given that PHP is largely "duck typed", it wo
On 26/05/2018 15:04, Rowan Collins wrote:
Here's a concrete example...
Sorry, slight mistake in my example: to be equivalent to the case
discussed, the Subclass::add(ParentClass $other) method should be
declared on one of the child classes. But it still works in both languages:
https://3v4
On 25/05/2018 19:48, Pedro Magalhães wrote:
On Fri, May 25, 2018 at 6:47 PM, Rowan Collins
mailto:rowan.coll...@gmail.com>> wrote:
I'm not sure what exactly is "ambiguous" or "might change" here. The
current text accurately describes what "protected" means in PHP,
and in
many ot
That's not really a bug, that's expected behaviour on which stuff like
friend classes and entire libraries are based upon...
On Fri, 25 May 2018, 20:50 Pedro Magalhães, wrote:
> On Fri, May 25, 2018 at 6:47 PM, Rowan Collins
> wrote:
> >
> > I'm not sure what exactly is "ambiguous" or "might ch
On Fri, May 25, 2018 at 6:47 PM, Rowan Collins
wrote:
>
> I'm not sure what exactly is "ambiguous" or "might change" here. The
> current text accurately describes what "protected" means in PHP, and in
> many other languages: a property which may be accessed only within the
> current class, classes
On 25 May 2018 13:29:41 BST, "Christoph M. Becker"
wrote:
>
> On 17.05.2018 at 12:12, Andrey O Gromov wrote:
>
> Please take a look on patch "EN error fixed" from user "rjhdby"
>>
>>
>> protected or
>> private. Class members declared public can be
>> accessed everywhere. Members de