|
21 | 21 | useProphecy\Prophecy\ProphecySubjectInterface; |
22 | 22 | useProxyManager\Proxy\ProxyInterface; |
23 | 23 | useSymfony\Component\ErrorHandler\Internal\TentativeTypes; |
| 24 | +useSymfony\Component\HttpClient\HttplugClient; |
24 | 25 |
|
25 | 26 | /** |
26 | 27 | * Autoloader checking if the class is really defined in the file found. |
@@ -414,7 +415,9 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array |
414 | 415 | if (!isset(self::$checkedClasses[$use])) { |
415 | 416 | $this->checkClass($use); |
416 | 417 | } |
417 | | -if (isset(self::$deprecated[$use]) &&strncmp($vendor,str_replace('_','\\',$use),$vendorLen) && !isset(self::$deprecated[$class])) { |
| 418 | +if (isset(self::$deprecated[$use]) &&strncmp($vendor,str_replace('_','\\',$use),$vendorLen) && !isset(self::$deprecated[$class]) |
| 419 | + && !(HttplugClient::class ===$class &&\in_array($use, [\Http\Message\RequestFactory::class, \Http\Message\StreamFactory::class, \Http\Message\UriFactory::class],true)) |
| 420 | + ) { |
418 | 421 | $type =class_exists($class,false) ?'class' : (interface_exists($class,false) ?'interface' :'trait'); |
419 | 422 | $verb =class_exists($use,false) ||interface_exists($class,false) ?'extends' : (interface_exists($use,false) ?'implements' :'uses'); |
420 | 423 |
|
|