php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81121 Missing documentation for the -> symbol
Submitted: 2021-06-09 20:02 UTC Modified: 2021-06-10 10:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dsilvadarius at yahoo dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: Irrelevant OS: Windows 10
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dsilvadarius at yahoo dot com
New email:
PHP Version: OS:

 

 [2021-06-09 20:02 UTC] dsilvadarius at yahoo dot com
Description:
------------
The PHP manual does not document the -> symbol. The "List of Parser Tokens" page lists it as T_OBJECT_OPERATOR, but that's not friendly enough for a beginner. Could we have a section in the documentation explaining what it is and its purpose?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 10:07 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2021-06-10 10:07 UTC] cmb@php.net
The -> operator is informally introduced in the section about
properties[1], but is already used in the previous section.  There
is certainly room for improvement.

[1] <https://www.php.net/manual/en/language.oop5.properties.php>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 22:01:33 2024 UTC