Skip to content

Commit 65ecdf8

Browse files
committed
Merge branch 'last_day_of_month' of github.com:lorenzolosa/laravel-query-expressions into last_day_of_month
2 parents e8b181d + fd1ac23 commit 65ecdf8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/Function/Time/LastDayOfMonth.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ class LastDayOfMonth implements Expression
1616

1717
public function __construct(
1818
private readonly string|Expression $expression,
19-
) {
20-
}
19+
) {}
2120

2221
public function getValue(Grammar $grammar)
2322
{

tests/Function/Time/LastDayOfMonthTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22

33
declare(strict_types=1);
44

5-
use Illuminate\Database\Query\Expression;
6-
use Illuminate\Database\Schema\Blueprint;
7-
use Illuminate\Support\Facades\DB;
85
use Tpetry\QueryExpressions\Function\Time\LastDayOfMonth;
96
use Tpetry\QueryExpressions\Value\Value;
107

11-
128
it('can compute the last day of month of a column')
139
->expect(new LastDayOfMonth('date'))
1410
->toBeExecutable(function (Blueprint $table) {

0 commit comments

Comments
 (0)