致命错误:sapphirecat
的类型FATAL错误:Sapphirecat的类型\ Slim4HttpInteropadapter \ Guzzlepsr7v1Factory :: $ ResponseFactoryClass必须是字符串(如Class Slim \ factory \ PSR17 \ psr17 \ psr17factory)操作适配器\ src \ guzzlepsr7v1factory.php在第14行上
我已经重新安装了纤细的要求,但是我又有相同的错误当您等待供应商的修复程序,
tempolaly
编辑文件guzzlepsr7v1 -factory.php from
/** @var string */
protected static $responseFactoryClass = 'Http\Factory\Guzzle\ResponseFactory';
/** @var string */
protected static $streamFactoryClass = 'Http\Factory\Guzzle\StreamFactory';
/** @var string */
protected static $serverRequestCreatorClass = 'GuzzleHttp\Psr7\ServerRequest';
/** @var string */
protected static $serverRequestCreatorMethod = 'fromGlobals';
/** @var string */
protected static string $responseFactoryClass = 'Http\Factory\Guzzle\ResponseFactory';
/** @var string */
protected static string $streamFactoryClass = 'Http\Factory\Guzzle\StreamFactory';
/** @var string */
protected static string $serverRequestCreatorClass = 'GuzzleHttp\Psr7\ServerRequest';
/** @var string */
protected static string $serverRequestCreatorMethod = 'fromGlobals';
I.E。添加每个班级成员之后。