From 76a8c5eb151d5dd9e33277d544491bfa5e88c82e Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 24 Jan 2023 15:02:24 +0100 Subject: [PATCH 1/2] Update license years (last time) --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 0083704..0138f8f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2004-2023 Fabien Potencier +Copyright (c) 2004-present Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From f83692cd869a6f2391691d40a01e8acb89e76fee Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 14 Dec 2022 15:42:16 +0100 Subject: [PATCH 2/2] Migrate to `static` data providers using `rector/rector` --- Tests/StopwatchPeriodTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/StopwatchPeriodTest.php b/Tests/StopwatchPeriodTest.php index 81010a7..37417ae 100644 --- a/Tests/StopwatchPeriodTest.php +++ b/Tests/StopwatchPeriodTest.php @@ -43,7 +43,7 @@ public function testGetDuration($start, $end, $useMorePrecision, $duration) $this->assertEqualsWithDelta($duration, $period->getDuration(), \PHP_FLOAT_EPSILON); } - public function provideTimeValues() + public static function provideTimeValues() { yield [0, false, 0]; yield [0, true, 0.0]; @@ -53,7 +53,7 @@ public function provideTimeValues() yield [2.71, true, 2.71]; } - public function provideDurationValues() + public static function provideDurationValues() { yield [0, 0, false, 0]; yield [0, 0, true, 0.0];