Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NoProxyPattern.php

function NoProxyPattern::validateInt

Wrapper around filter_var FILTER_VALIDATE_INT

2 calls to NoProxyPattern::validateInt()
NoProxyPattern::ipCheckData in vendor/composer/composer/src/Composer/Util/NoProxyPattern.php
Creates an object containing IP data if the host is an IP address
NoProxyPattern::splitHostPort in vendor/composer/composer/src/Composer/Util/NoProxyPattern.php
Splits the hostname into host and port components

File

vendor/composer/composer/src/Composer/Util/NoProxyPattern.php, line 401

Class

NoProxyPattern
Tests URLs against NO_PROXY patterns

Namespace

Composer\Util

Code

private function validateInt(string $int, int $min, int $max) : bool {
    $options = [
        'options' => [
            'min_range' => $min,
            'max_range' => $max,
        ],
    ];
    return false !== filter_var($int, FILTER_VALIDATE_INT, $options);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal