1
0
Fork 0

Changed error suppression to Silencer

pull/5499/head
Richard Fussenegger 2016-07-07 08:25:46 +02:00 committed by GitHub
parent 14224a1f02
commit 560f09cf3c
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ use Composer\Package\CompletePackage;
use Composer\Package\PackageInterface;
use Composer\Package\Version\VersionParser;
use Composer\Plugin\PluginInterface;
use Composer\Util\Silencer;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
@ -88,7 +89,7 @@ class PlatformRepository extends ArrayRepository
// The AF_INET6 constant is only defined if ext-sockets is available but
// IPv6 support might still be available.
if (defined('AF_INET6') || @inet_pton('::') !== false) {
if (defined('AF_INET6') || Silencer::call('inet_pton', '::') !== false) {
$phpIpv6 = new CompletePackage('php-ipv6', $version, $prettyVersion);
$phpIpv6->setDescription('The PHP interpreter with IPv6 support');
$this->addPackage($phpIpv6);