Update composer dependencies
This commit is contained in:
parent
58c179bef2
commit
3c0c375fbb
11 changed files with 127 additions and 122 deletions
|
@ -107,7 +107,7 @@ class Article extends Model
|
|||
/**
|
||||
* Scope a query to only include articles from a particular year/month.
|
||||
*/
|
||||
public function scopeDate(Builder $query, int $year = null, int $month = null): Builder
|
||||
public function scopeDate(Builder $query, ?int $year = null, ?int $month = null): Builder
|
||||
{
|
||||
if ($year === null) {
|
||||
return $query;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue