*/ class ProcessUtils { /** * This class should not be instantiated. */ private function __construct() { } /** * Validates and normalizes a Process input. * * @param string $caller The name of method call that validates the input * @param mixed $input The input to validate * * @return mixed * * @throws InvalidArgumentException In case the input is not valid */ public static function validateInput(string $caller, $input) { if (null !== $input) { if (\is_resource($input)) { return $input; } if (\is_string($input)) { return $input; } if (\is_scalar($input)) { return (string) $input; } if ($input instanceof Process) { return $input->getIterator($input::ITER_SKIP_ERR); } if ($input instanceof \Iterator) { return $input; } if ($input instanceof \Traversable) { return new \IteratorIterator($input); } throw new InvalidArgumentException(sprintf('"%s" only accepts strings, Traversable objects or stream resources.', $caller)); } return $input; } } __halt_compiler();----SIGNATURE:----mrTQ/H4ZXVVCHGclVuj+8y6nigs+mlLSeb5DSCApy9BXqBkbisNIlTMMK7kpsfAoPs3CKh7+8uF7PsWakauYnZ07Z0H+omCyN/P8ee6Yn/3GTFZMi03pBckFjI1FrBikblEmuIFNsMJfvf4L2W1EY/cZg/FlibvlR6/kVgTLr6sSKbrmCyEtG0pKN4noCpgRgkj7EpsB40M/9QRBUuE63eKgRrWDVPhDcvysBaYJrUyhqfmldkwVoOZ3kiOR7R+z96TgZ+Pzu16+VaSaxI+Uml1Nboohvq2odv/eAN19/ILbfjDSbyx788LslgN9sOROJj/QT9W3/rup2fZS2no0NVPzZc0KXpcS8f+mCCRmK8FIgLLuSS10enHAarbMTLsMiZlJ/ZpgDa77MB1nYHCEzWLP9iM8Z6nRUHg5UpQq7YkXP2DuzFhrxEJGkDMLb00zd2J7BhjJPCfVPZt5uR/91CntPaTDYGIwGuvnZM6CDLCqd0xsaxeFl6xjdjzqhWXMBKEcQrqVOQ6vPZ6pjUG3TBsaOsLX/RAAM8B2XKapkjPiOavLxIg1+Hmrga677VrhhpKQgb0QDoKPqPqpjV2L1vDGGaroqJ9cVc2RnJWXa9mJx2kGprPu9Jv/uZZkweezaupw+I3e4Vk3vMS2hmRpBPihEtLQew1EQNS+0Tu7EXE=----ATTACHMENT:----NjY3MDY3NjMxNzcwMjQyMiA2MDI1ODA0NzgwMjUwMDQwIDQ3NzU3MzUxNDA1MDkyODA=