for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stadly\PasswordPolice\WordFormatter;
use Traversable;
final class LowerCase extends ChainableFormatter
{
/**
* @param iterable<string> $words Words to format.
* @return Traversable<string> The words with all characters in lower case.
*/
protected function applyCurrent(iterable $words): Traversable
foreach ($words as $word) {
yield mb_strtolower($word);
}