for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Version\Extension;
use Version\Exception\InvalidIdentifierException;
class Build extends BaseExtension
{
protected function validate(string $identifier) : void
if (! preg_match('/^[0-9A-Za-z\-]+$/', $identifier)) {
throw InvalidIdentifierException::forExtensionIdentifier($this, $identifier);
}