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 UpperCase extends ChainableFormatter
{
/**
* @param iterable<string> $words Words to format.
* @return Traversable<string> The words with all characters in upper case.
*/
protected function applyCurrent(iterable $words): Traversable
foreach ($words as $word) {
yield mb_strtoupper($word);
}