Просмотр исходного кода

:octocat: fix for snake_case function names

smiley 1 год назад
Родитель
Сommit
8d5d5db991
1 измененных файлов с 1 добавлено и 1 удалено
  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;