It should be noted that next() sends an implicit null into the generator to ensure that code execution isn't blocked if the generator is expecting a value to be sent into it and the code doesn't execute any send()
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Generator::next — Reprend l'exécution du générateur
L'appel de Generator::next() a le même effet qu'appeler
Generator::send() avec null
comme argument.
Cette fonction ne contient aucun paramètre.
Aucune valeur n'est retournée.
It should be noted that next() sends an implicit null into the generator to ensure that code execution isn't blocked if the generator is expecting a value to be sent into it and the code doesn't execute any send()