for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the humbug/php-scoper package.
*
* Copyright (c) 2017 Théo FIDRY <[email protected]>,
* Pádraic Brady <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Humbug\PhpScoper\PhpParser\Node;
use InvalidArgumentException;
use PhpParser\Node\Name;
final class NameFactory
{
/**
* @param string|string[]|Name|null $name1
* @param string|string[]|Name|null $name2
public static function concat($name1, $name2, array $attributes = []): Name
if (null === $name1 && null === $name2) {
throw new InvalidArgumentException('Expected one of the names to not be null');
}
return Name::concat($name1, $name2, $attributes);
return PhpParser\Node\Na...1, $name2, $attributes)
null
PhpParser\Node\Name
private function __construct()