Skip to content

Commit eb32761

Browse files
authored
Added 'trim' to classes list names for config
I think this will fix such generated config files (extra line is not a correct one): ``` return (object)array ( 'rootNamespace' => 'Imponeer\\Contracts\\Smarty\\', 'destDirectory' => '/home/runner/work/_temp/new-wiki-89d52d29ae6ac19a5fa5d6fa5fb9a04b9e6f4b64-2609832018-1', 'format' => 'github', 'classes' => array ( 0 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyBlockInterface ', 1 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyCompilerInterface ', 2 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyExtensionInterface ', 3 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyFunctionInterface ', 4 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyModifierInterface ', 5 => 'Imponeer\\Contracts\\Smarty\\Extension\\SmartyResourceInterface ', 6 => 'Imponeer\\Contracts\\Smarty\\Filter\\SmartyFilterInterface ', 7 => 'Imponeer\\Contracts\\Smarty\\Filter\\SmartyOutputFilterInterface ', 8 => 'Imponeer\\Contracts\\Smarty\\Filter\\SmartyPostFilterInterface ', 9 => 'Imponeer\\Contracts\\Smarty\\Filter\\SmartyPreFilterInterface', ), ); ```
1 parent b69655a commit eb32761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'rootNamespace' => $rootNamespace,
1919
'destDirectory' => $outputDocsPath,
2020
'format' => 'github',
21-
'classes' => file($classesListFile),
21+
'classes' => array_map('trim', file($classesListFile)),
2222
],
2323
true
2424
) . ';'

0 commit comments

Comments
 (0)