You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$requestFactoryinstanceof RequestFactory && !$requestFactoryinstanceof RequestFactoryInterface) {
31
39
thrownew \TypeError(
32
40
sprintf('%s::__construct(): Argument #2 ($requestFactory) must be of type %s|%s, %s given', self::class, RequestFactory::class, RequestFactoryInterface::class, get_debug_type($requestFactory))
33
41
);
34
42
}
35
43
44
+
if (!$requestFactoryinstanceof RequestFactory && null === $streamFactory) {
45
+
@trigger_error(sprintf('Passing a %s without a %s to %s::__construct() is deprecated as of version 2.3 and will be disallowed in version 3.0. A stream factory is required to create a request with a non-empty string body.', RequestFactoryInterface::class, StreamFactoryInterface::class, self::class));
0 commit comments