wp-includes/php-ai-client/third-party/Http/Discovery/Strategy/CommonClassesStrategy.php:104Can be used as a condition.
bool public static function isPsr17FactoryInstalled() { try { Psr17FactoryDiscovery::findResponseFactory(); } catch (NotFoundException $e) { return \false; } catch (\Throwable $e) { trigger_error(sprintf('Got exception "%s (%s)" while checking if a PSR-17 ResponseFactory is available', get_class($e), $e->getMessage()), \E_USER_WARNING); return \false; } return \true; }Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/third-party/Http/Discovery/Strategy/CommonClassesStrategy.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.