for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Symplify\DefaultAutowire\Tests\Source;
class SomeServiceWithOptionalConstructorArgumentsFactory
{
/**
* @param SomeService|null $someService
* @param array $arg
*
* @return SomeServiceWithOptionalConstructorArguments
*/
public function create(
SomeService $someService = null,
array $arg = []
) : SomeServiceWithOptionalConstructorArguments {
return new SomeServiceWithOptionalConstructorArguments($someService, $arg);
}