for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiechu\SymfonyCommonsBundle\Utils;
class StringUtils
{
/**
* @param string $string
*
* @throws \InvalidArgumentException
*/
public static function assertNotEmpty(string $string): void
if ('' === $string) {
throw new \InvalidArgumentException('Empty string provided');
}