Skip to content

Commit

Permalink
[std] fix doc generation for php.Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Apr 6, 2020
1 parent 5c4c81f commit a5cbd5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/php/Generator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
package php;

/**
@see http://php.net/manual/en/class.generator.php
Generator is not a Haxe Iterable. It can be iterated one time only.
Unfortunately Haxe does not know that in PHP generators may have no `return` expression or `return value` with any type of `value`.
Use `return null` or untyped cast to workaround this issue:
Expand All @@ -45,6 +43,8 @@ package php;
}
trace(g.getReturn()); // "hello"
```
@see http://php.net/manual/en/class.generator.php
**/
@:native('Generator')
extern class Generator {
Expand Down

0 comments on commit a5cbd5a

Please sign in to comment.