require File.join(File.dirname(__FILE__), 'homebrew-php-requirement')

class PhpMetaRequirement < HomebrewPhpRequirement
  def satisfied?
    %w{php53 php54 php55}.any? { |php| Formula.factory(php).installed? }
  end

  def message
    "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing"
  end
end

require File.join(File.dirname(__FILE__), 'homebrew-php-requirement')

class PhpMetaRequirement < HomebrewPhpRequirement
  def satisfied?
    %w{php53 php54 php55}.any? do |php|
        f = Formula.factory(php)
        f.rack.directory? && f.rack.children.length > 0
    end
  end

  def message
    "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing"
  end
end

Allow non newest version PHP to tools.
Allow non newest version PHP to tools.

Installation of PHP tools was blocked if installed PHP does not match to the newest formulas.
