Skip to content

Commit

Permalink
Rename to match framework
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Aug 30, 2023
1 parent 6cb8c00 commit f265918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Middleware/EnsureFeaturesAreActive.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function handle(Request $request, Closure $next, string ...$features): mi
/**
* Specify the features for the middleware.
*/
public static function all(string ...$features): string
public static function using(string ...$features): string
{
return static::class.':'.implode(',', $features);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/FeatureMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function test_middleware_string_can_be_returned(): void
{
$this->assertEquals(
'Laravel\Pennant\Middleware\EnsureFeaturesAreActive:test,another',
EnsureFeaturesAreActive::all('test', 'another'),
EnsureFeaturesAreActive::using('test', 'another'),
);
}

Expand Down

0 comments on commit f265918

Please sign in to comment.