Skip to content

Commit 5b6bea4

Browse files
committed
Fix phpstan issue
1 parent adb9c87 commit 5b6bea4

File tree

1 file changed

+1
-1
lines changed
  • yii2-adapter/legacy/web/twig/variables

1 file changed

+1
-1
lines changed

yii2-adapter/legacy/web/twig/variables/Cp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public function nav(): array
391391
}
392392

393393
if (!isset($item['id'])) {
394-
$item['id'] = 'nav-' . preg_replace('/[^\w\-_]/', '', StringHelper::toAscii(str_replace('/', '-', $item['url'])));
394+
$item['id'] = 'nav-' . preg_replace('/[^\w\-_]/', '', Str::ascii(str_replace('/', '-', $item['url'])));
395395
}
396396

397397
$item['url'] = UrlHelper::url($item['url']);

0 commit comments

Comments
 (0)