Skip to content

Commit

Permalink
fix: 强制转换中间件配置为数组类型
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Dec 2, 2024
1 parent bd255be commit 51295b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/RegisterRoutesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function listen(): array
public function process(object $event): void
{
$prefix = $this->config->get('web-tinker.path', '/tinker');
$middleware = $this->config->get('web-tinker.middleware', []);
$middleware = (array) $this->config->get('web-tinker.middleware', []);

Router::addGroup($prefix, function () {
Router::get('', WebTinkerController::class . '@index');
Expand Down

0 comments on commit 51295b4

Please sign in to comment.