Skip to content

Commit

Permalink
updated interface and stub
Browse files Browse the repository at this point in the history
  • Loading branch information
tjodalv committed Mar 20, 2024
1 parent 442e135 commit 0f3b8aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Contracts/AnchorExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace Kanuni\LaravelBladeAnchor\Contracts;

use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\Support\Renderable;

interface AnchorExtender
{
public function __invoke(?array $variables): string|Htmlable|Renderable|null;
public function __invoke(?array $variables): string|Renderable|null;
}
3 changes: 1 addition & 2 deletions stubs/anchor-extender.stub
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php
namespace {{namespace}};

use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\Support\Renderable;
use Kanuni\LaravelBladeAnchor\Contracts\AnchorExtender;

class {{class}} implements AnchorExtender
{
public function __invoke(?array $variables): string|Htmlable|Renderable|null
public function __invoke(?array $variables): string|Renderable|null
{
return '<p>Extending a view ...</p>';
}
Expand Down

0 comments on commit 0f3b8aa

Please sign in to comment.