for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cycle\Schema\Renderer\MermaidRenderer;
trait StringFormatter
{
public function resolveString(string $value): string
if (\preg_match('/[^_a-zA-Z0-9]/u', $value)) {
$value = \preg_replace('/[^a-z0-9_]/u', '_', $value);
}
return $value;