for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace IproSync\Models;
use Carbon\Carbon;
trait HasPullAt
{
public function getHasPullAtCastsAttr()
return [
'last_pull_at' => 'datetime',
];
}
public function fillPulled(?Carbon $datetime = null): static
return $this->fill([
fill()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ fill([
'last_pull_at' => $datetime ?? Carbon::now(),
]);