🤖 Auto commit for release 'develop' on 2025-07-07

This commit is contained in:
JC5
2025-07-07 05:34:03 +02:00
parent d73df9bf0a
commit d998eff56e
14 changed files with 41 additions and 51 deletions

View File

@@ -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)];

View File

@@ -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()];

View File

@@ -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'];

View File

@@ -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'];

View File

@@ -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'];

View File

@@ -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'];

View File

@@ -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'];

View File

@@ -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()];

View File

@@ -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' => [
'',