You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jayce (Jira)" <ji...@apache.org> on 2021/11/25 06:05:00 UTC

[jira] [Commented] (NETBEANS-5600) PHP8 Stringable interface

    [ https://issues.apache.org/jira/browse/NETBEANS-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448951#comment-17448951 ] 

Jayce commented on NETBEANS-5600:
---------------------------------

Manual was updated:

[https://github.com/php/doc-en/blob/7cfd68e5d41eff8dd375fde3e9830818cd1310de/language/predefined/stringable.xml]

Doc seems correct.

When do you generate sigfiles from the manual?

> PHP8 Stringable interface
> -------------------------
>
>                 Key: NETBEANS-5600
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5600
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor
>            Reporter: Jayce
>            Assignee: Junichi Yamamoto
>            Priority: Minor
>
> Can you add Stringable interface ?
> [https://www.php.net/manual/en/class.stringable.php]
> The Stringable interface denotes a class as having a __toString() method. Unlike most interfaces, Stringable is implicitly present on any class that has the magic __toString() method defined, although it can and *should be declared explicitly.*
> *Case 1:*
>  # Create a class
>  # add "implements Stringable"
>  # Menu Source->InsertCode>Override and implement method
>  # Netbeans should propose "__toString" function
> *Case 2*
> In a class with the __toString function coded, netbeans should show a warning on Class line if "implements Stringable" is missing.
>  
> Thanks



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists