Best of both worlds because of mockery

This commit is contained in:
Lance Pioch 2024-03-17 13:59:21 -04:00
parent a97e3ee3e8
commit 37094ffc1f
2 changed files with 6 additions and 2 deletions

View File

@ -23,8 +23,10 @@ abstract class DaemonRepository
/**
* Set the server model this request is stemming from.
*
* @return static
*/
public function setServer(Server $server): static
public function setServer(Server $server): self
{
$this->server = $server;

View File

@ -49,8 +49,10 @@ abstract class BaseTransformer extends TransformerAbstract
/**
* Returns a new transformer instance with the request set on the instance.
*
* @return static
*/
public static function fromRequest(Request $request): static
public static function fromRequest(Request $request): self
{
return app(static::class)->setRequest($request);
}