Skip to content

Commit

Permalink
Do not use strval function
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Mar 1, 2024
1 parent b06f642 commit c7abb7b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use function preg_replace;
use function str_replace;
use function strtolower;
use function strval;

final class TabDirective extends SubDirective
{
Expand All @@ -50,7 +49,7 @@ protected function processSub(
}

$key = str_replace(' ', '-', $key);
$key = strval(preg_replace('/[^a-zA-Z0-9\-_]/', '', $key));
$key = (string) (preg_replace('/[^a-zA-Z0-9\-_]/', '', $key));
$active = $directive->hasOption('active');

return new TabNode(
Expand Down

0 comments on commit c7abb7b

Please sign in to comment.