mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 14:34:44 +02:00
Best of both worlds because of mockery
This commit is contained in:
parent
a97e3ee3e8
commit
37094ffc1f
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user