private function determineMissingVersions($supportedPhpByTravis, $travisVersions, $constraintsComposer)
    {
        $versionParser   = new VersionParser();
        $missingVersions = array();
        foreach (array_diff($supportedPhpByTravis, $travisVersions) as $version) {
            if ('nightly' === $version) {
                continue;
            }

            // Travis only allows major.minor specification.
            $constraintsTravis = $versionParser->parseConstraints($version . '.9999999.9999999');
            if ($constraintsComposer->matches($constraintsTravis)) {
                $missingVersions[] = $version;
            }
        }

        return $missingVersions;
    }
private function determineMissingVersions($supportedPhpByTravis, $travisVersions, $constraintsComposer)
    {
        $versionParser   = new VersionParser();
        $missingVersions = array();
        foreach (array_diff($supportedPhpByTravis, $travisVersions) as $version) {
            if ('nightly' === $version) {
                continue;
            }

            // Travis only allows major.minor specification.
            $constraintsTravis = $versionParser->parseConstraints($version . '.9999999.9999999');
            if ($constraintsComposer->matches($constraintsTravis)) {
                $missingVersions[] = $version;
            }
        }

        return $missingVersions;
    }
private function determineMissingVersions ( $ supportedPhpByTravis , $ travisVersions , $ constraintsComposer ) { $ versionParser = new VersionParser ( ) ; $ missingVersions = array ( ) ; foreach ( array_diff ( $ supportedPhpByTravis , $ travisVersions ) as $ version ) { if ( 'nightly' === $ version ) { continue ; } // Travis only allows major.minor specification. $ constraintsTravis = $ versionParser -> parseConstraints ( $ version . '.9999999.9999999' ) ; if ( $ constraintsComposer -> matches ( $ constraintsTravis ) ) { $ missingVersions [ ] = $ version ; } } return $ missingVersions ; }
Determine the list of versions missing in composer.json.

@param string[]            $supportedPhpByTravis The list of versions supported by travis.

@param string[]            $travisVersions       The list of versions specified in .travis.yml.

@param ConstraintInterface $constraintsComposer  The constraint from composer.json.

@return string[]
Determine the list of versions missing in composer . json .