Browse Source

:octocat: fix for snake_case function names

smiley 1 year ago
parent
commit
8d5d5db991
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/qroptions-doc.php

+ 1 - 1
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;