From 8d5d5db991c6550e7eb5b6cefedb1bd25b1a4593 Mon Sep 17 00:00:00 2001 From: smiley Date: Fri, 19 Apr 2024 10:17:08 +0200 Subject: [PATCH] :octocat: fix for snake_case function names --- docs/qroptions-doc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/qroptions-doc.php b/docs/qroptions-doc.php index 6f75380bd..731369ea0 100644 --- a/docs/qroptions-doc.php +++ b/docs/qroptions-doc.php @@ -71,7 +71,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re } // php.net documentation elseif(str_starts_with($line, '\\') && !str_contains($line, 'chillerlan')){ - $path = str_replace(['\\', '::', '()'], ['', '.', ''], strtolower($line)); + $path = str_replace(['\\', '::', '()', '_'], ['', '.', '', '-'], strtolower($line)); if(!str_contains($line, '::')){ $path = 'function.'.$path;