mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
🤖 Auto commit for release 'develop' on 2025-07-07
This commit is contained in:
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Calendar\Periodicity;
|
||||
use FireflyIII\Support\Navigation;
|
||||
@@ -111,7 +110,7 @@ final class NavigationAddPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function providePeriods(): Iterator
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
yield '1D' => ['1D', Carbon::now(), Carbon::tomorrow()];
|
||||
|
||||
@@ -161,7 +160,7 @@ final class NavigationAddPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provideFrequencies(): Iterator
|
||||
public static function provideFrequencies(): iterable
|
||||
{
|
||||
yield Periodicity::Daily->name => [Periodicity::Daily, Carbon::now(), Carbon::tomorrow()];
|
||||
|
||||
@@ -215,7 +214,7 @@ final class NavigationAddPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provideMonthPeriods(): Iterator
|
||||
public static function provideMonthPeriods(): iterable
|
||||
{
|
||||
yield '1M' => ['1M', Carbon::parse('2023-06-25'), Carbon::parse('2023-06-25')->addMonthsNoOverflow(1)];
|
||||
|
||||
|
@@ -24,7 +24,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -58,7 +57,7 @@ final class NavigationEndOfPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provideDates(): Iterator
|
||||
public static function provideDates(): iterable
|
||||
{
|
||||
yield '1D' => ['1D', Carbon::now(), Carbon::now()->endOfDay()];
|
||||
|
||||
@@ -122,7 +121,7 @@ final class NavigationEndOfPeriodTest extends TestCase
|
||||
Log::shouldHaveReceived('error', [$expectedMessage]);
|
||||
}
|
||||
|
||||
public static function provideUnknownFrequencies(): Iterator
|
||||
public static function provideUnknownFrequencies(): iterable
|
||||
{
|
||||
yield '1day' => ['1day', Carbon::now(), Carbon::now()];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\integration\TestCase;
|
||||
@@ -57,7 +56,7 @@ final class NavigationPreferredCarbonFormatByPeriodTest extends TestCase
|
||||
$this->assertSame($expected, $formatPeriod);
|
||||
}
|
||||
|
||||
public static function providePeriods(): Iterator
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
yield 'unknown' => ['1day', 'Y-m-d'];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
@@ -58,7 +57,7 @@ final class NavigationPreferredCarbonFormatTest extends TestCase
|
||||
$this->assertSame($expected, $carbonFormat);
|
||||
}
|
||||
|
||||
public static function providePeriods(): Iterator
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
yield '1 week' => [Carbon::now(), Carbon::now()->addWeek(), 'Y-m-d'];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
@@ -58,7 +57,7 @@ final class NavigationPreferredEndOfPeriodTest extends TestCase
|
||||
$this->assertSame($expected, $formatPeriod);
|
||||
}
|
||||
|
||||
public static function providePeriods(): Iterator
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
yield '1 week' => [Carbon::now(), Carbon::now()->addWeek(), 'endOfDay'];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
@@ -58,7 +57,7 @@ final class NavigationPreferredRangeFormatTest extends TestCase
|
||||
$this->assertSame($expected, $formatPeriod);
|
||||
}
|
||||
|
||||
public static function providePeriods(): Iterator
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
yield '1 week' => [Carbon::now(), Carbon::now()->addWeek(), '1D'];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
@@ -58,7 +57,7 @@ final class NavigationPreferredSqlFormatTest extends TestCase
|
||||
$this->assertSame($expected, $formatPeriod);
|
||||
}
|
||||
|
||||
public static function provideDates(): Iterator
|
||||
public static function provideDates(): iterable
|
||||
{
|
||||
yield '1 week' => [Carbon::now(), Carbon::now()->addWeek(), '%Y-%m-%d'];
|
||||
|
||||
|
@@ -25,7 +25,6 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use Override;
|
||||
use Iterator;
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Support\Navigation;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -59,7 +58,7 @@ final class NavigationStartOfPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provideDates(): Iterator
|
||||
public static function provideDates(): iterable
|
||||
{
|
||||
yield 'custom' => ['custom', Carbon::now(), Carbon::now()];
|
||||
|
||||
@@ -124,7 +123,7 @@ final class NavigationStartOfPeriodTest extends TestCase
|
||||
$this->assertSame($expected->toDateString(), $period->toDateString());
|
||||
}
|
||||
|
||||
public static function provideUnknownFrequencies(): Iterator
|
||||
public static function provideUnknownFrequencies(): iterable
|
||||
{
|
||||
yield '1day' => ['1day', Carbon::now(), Carbon::now()];
|
||||
|
||||
|
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\unit\Support\Search\QueryParser;
|
||||
|
||||
use Iterator;
|
||||
use FireflyIII\Support\Search\QueryParser\FieldNode;
|
||||
use FireflyIII\Support\Search\QueryParser\QueryParserInterface;
|
||||
use FireflyIII\Support\Search\QueryParser\StringNode;
|
||||
@@ -30,7 +29,7 @@ abstract class AbstractQueryParserInterfaceParseQueryTester extends TestCase
|
||||
|
||||
}
|
||||
|
||||
public static function queryDataProvider(): Iterator
|
||||
public static function queryDataProvider(): iterable
|
||||
{
|
||||
yield 'empty query' => [
|
||||
'',
|
||||
|
Reference in New Issue
Block a user