for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EasyIM;
/**
* Class Factory
*
* @method static \EasyIM\TencentIM\Application TencentIM(array $config)
*/
class Factory
{
* @param string $name
* @param array $config
* @return \EasyIM\Kernel\ServiceContainer
public static function make($name, array $config)
$namespace = Kernel\Support\Str::studly($name);
$application = "\\EasyIM\\{$namespace}\\Application";
return new $application($config);
}
* Dynamically pass methods to the application.
* @param array $arguments
* @return mixed
public static function __callStatic($name, $arguments)
return self::make($name, ...$arguments);
$arguments
$config
EasyIM\Factory::make()
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
return self::make($name, /** @scrutinizer ignore-type */ ...$arguments);