Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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