Re: [PHP-DEV] Re: OBJECT_OPERATOR vs. DOUBLE_COLON

2017-07-05 Thread Kalle Sommer Nielsen
Hi Andrea, Sebastian 2017-07-06 1:12 GMT+02:00 Andrea Faulds : > Hi Sebastian, > > Sebastian Bergmann wrote: >> >> Is it intentional that the DOUBLE_COLON operator can be used on a >> variable that contains a reference to an object? > > > I assume so. It wouldn't be the only place that accepts eit

[PHP-DEV] Re: OBJECT_OPERATOR vs. DOUBLE_COLON

2017-07-05 Thread Andrea Faulds
Hi Sebastian, Sebastian Bergmann wrote: Is it intentional that the DOUBLE_COLON operator can be used on a variable that contains a reference to an object? I assume so. It wouldn't be the only place that accepts either a class name or an object of that class. I think that using :: on a vari