|
Posted by Michael Fesser on 10/01/07 13:58
..oO(Mtr)
>On Mon, 01 Oct 2007 15:41:35 +0200, Willem Bogaerts
><w.bogaerts@kratz.maardanzonderditstuk.nl> wrote:
>
>>> Also, what does "unexpected T_OBJECT_OPERATOR" mean?
>>
>>It means that the -> is unexpected at that point.
>
>Yes, thanks, but more precisely: the "->" is not an operator
It is an operator, like "::".
>nor is it
>text. (I assume that "T" is short for text.)
The "T" means token.
>So it's unclear what this
>error msg means.
The parser simply doesn't expect a "->" token at that point.
>Let me refine my example, so as not to use any reserved word like
>"function"
>
>$o = new MyObject()->myFunction() does not work:
>
>If I know what the error means, it will be easier to remember.
The message is pretty clear. PHP doesn't support this syntax.
Micha
[Back to original message]
|