Skip to content

Commit

Permalink
Merge pull request #27 from lcobucci/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
lcobucci committed Feb 26, 2020
2 parents 9c4bd08 + 8efb0d4 commit 70f25bd
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
/.phpcs.cache
/infection-log.txt
/phpstan.neon
/.phpunit.result.cache
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Expand Up @@ -8,7 +8,7 @@ build:
rabbitmq: false
mongodb: false
php:
version: 7.2
version: 7.4
cache:
disabled: false
directories:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,7 @@ language: php
sudo: false

php:
- 7.2
- 7.4
- nightly

cache:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/lcobucci/clock.svg?style=flat-square)](https://packagist.org/packages/lcobucci/clock)

![Branch master](https://img.shields.io/badge/branch-master-brightgreen.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/lcobucci/clock/master.svg?style=flat-square)](http://travis-ci.org/#!/lcobucci/clock)
[![Build Status](https://img.shields.io/travis/lcobucci/clock/master.svg?style=flat-square)](http://travis-ci.org/lcobucci/clock)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/lcobucci/clock/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/lcobucci/clock/?branch=master)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/lcobucci/clock/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/lcobucci/clock/?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/50e3ef67-0f42-48fe-ace5-0beb9f78d117/mini.png)](https://insight.sensiolabs.com/projects/50e3ef67-0f42-48fe-ace5-0beb9f78d117)
Expand Down
17 changes: 9 additions & 8 deletions composer.json
Expand Up @@ -10,16 +10,17 @@
}
],
"require": {
"php": "^7.2"
"php": "^7.4"
},
"require-dev": {
"infection/infection": "^0.13",
"lcobucci/coding-standard": "^1.0",
"phpstan/phpstan": "^0.10",
"phpstan/phpstan-deprecation-rules": "^0.10",
"phpstan/phpstan-phpunit": "^0.10",
"phpstan/phpstan-strict-rules": "^0.10",
"phpunit/phpunit": "^8.5.2"
"infection/infection": "^0.15",
"lcobucci/coding-standard": "^4.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 0 additions & 6 deletions phpstan.neon.dist
@@ -1,9 +1,3 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

parameters:
level: 7
paths:
Expand Down
5 changes: 1 addition & 4 deletions src/FrozenClock.php
Expand Up @@ -7,10 +7,7 @@

final class FrozenClock implements Clock
{
/**
* @var DateTimeImmutable
*/
private $now;
private DateTimeImmutable $now;

public function __construct(DateTimeImmutable $now)
{
Expand Down
7 changes: 2 additions & 5 deletions src/SystemClock.php
Expand Up @@ -9,14 +9,11 @@

final class SystemClock implements Clock
{
/**
* @var DateTimeZone
*/
private $timezone;
private DateTimeZone $timezone;

public function __construct(?DateTimeZone $timezone = null)
{
$this->timezone = $timezone ?: new DateTimeZone(date_default_timezone_get());
$this->timezone = $timezone ?? new DateTimeZone(date_default_timezone_get());
}

public function now(): DateTimeImmutable
Expand Down
1 change: 1 addition & 0 deletions test/FrozenClockTest.php
Expand Up @@ -27,6 +27,7 @@ public function nowShouldReturnAlwaysTheSameObject(): void
* @test
*
* @covers \Lcobucci\Clock\FrozenClock::setTo
*
* @uses \Lcobucci\Clock\FrozenClock::__construct()
* @uses \Lcobucci\Clock\FrozenClock::now
*/
Expand Down

0 comments on commit 70f25bd

Please sign in to comment.