| 1 | <?php |
||
| 10 | class Plaintext extends Field |
||
| 11 | { |
||
| 12 | //////////////////////////////////////////////////////////////////// |
||
| 13 | /////////////////////////// CORE METHODS /////////////////////////// |
||
| 14 | //////////////////////////////////////////////////////////////////// |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Prints out the current tag |
||
| 18 | * |
||
| 19 | * @return string A plain text tag |
||
| 20 | */ |
||
| 21 | public function render() |
||
| 29 | |||
| 30 | protected function escapeValue() |
||
| 37 | } |
||
| 38 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.