Skip to content

Commit

Permalink
Merge pull request #864 from hydephp/realtime-compiler-updates
Browse files Browse the repository at this point in the history
Minor RealtimeCompiler code cleanup
  • Loading branch information
caendesilva committed Jan 22, 2023
2 parents 523f428 + 82732bd commit 320aa53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RendersSearchPage
{
use InteractsWithLaravel;

public function __invoke()
public function __invoke(): string
{
$this->bootApplication();

Expand Down
3 changes: 2 additions & 1 deletion packages/realtime-compiler/src/Http/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Hyde\RealtimeCompiler\Http;

use Desilva\Microserve\Response;
use Throwable;
use Whoops\Handler\PrettyPageHandler;
use Whoops\Run;

Expand All @@ -12,7 +13,7 @@
*/
class ExceptionHandler
{
public static function handle(\Throwable $exception): Response
public static function handle(Throwable $exception): Response
{
$whoops = new Run();
$whoops->allowQuit(false);
Expand Down
4 changes: 3 additions & 1 deletion packages/realtime-compiler/src/Http/HtmlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace Hyde\RealtimeCompiler\Http;

class HtmlResponse extends \Desilva\Microserve\Response
use Desilva\Microserve\Response;

class HtmlResponse extends Response
{
public function send(): void
{
Expand Down

0 comments on commit 320aa53

Please sign in to comment.