diff --git a/.travis.yml b/.travis.yml index b9c53aa..37f9e72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: php php: - - 5.5 - - 5.4 - - 5.3 - - hhvm + - 7.2 + - 7.1 branches: except: @@ -20,10 +18,10 @@ branches: before_script: - composer self-update - - composer require satooshi/php-coveralls:dev-master --no-update + - composer require php-coveralls/php-coveralls --no-update - composer install script: phpunit --coverage-text after_script: - - php vendor/bin/coveralls -v + - php vendor/bin/php-coveralls -v diff --git a/composer.json b/composer.json index fc5f430..f754d95 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require": { - "php": ">=5.3.6" + "php": ">=7.1.0" }, "require-dev": { diff --git a/src/Xpl/DateTime/DateTime.php b/src/Xpl/DateTime/DateTime.php index 55e734c..a7b58ca 100644 --- a/src/Xpl/DateTime/DateTime.php +++ b/src/Xpl/DateTime/DateTime.php @@ -303,15 +303,16 @@ public function getOffset() /** * Resets the current time to a different one. * - * @param mixed $hour Hour of the time - * @param mixed $minute Minute of the time - * @param mixed $second Second of the time + * @param mixed $hour Hour of the time + * @param mixed $minute Minute of the time + * @param mixed $second Second of the time + * @param mixed $microseconds Microsecond of the time * * @return DateTime * * @see \DateTime::setTime() */ - public function setTime($hour = 0, $minute = 0, $second = 0) + public function setTime($hour = 0, $minute = 0, $second = 0, $microseconds = 0) { return $this->callParent( // Name of the parent method @@ -321,7 +322,8 @@ public function setTime($hour = 0, $minute = 0, $second = 0) // Clean arguments for parent call empty($hour) ? 0 : $hour, empty($minute) ? 0 : $minute, - empty($second) ? 0 : $second + empty($second) ? 0 : $second, + empty($microseconds) ? 0 : $microseconds ); }