You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that GenerateMarkdown uses print_r for rendering default values. print_r is completely unsuitable for printing Boolean values because it renders false as empty string and true as 1.
I think that it would be better to use var_export instead.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
I generated markdown of
public static function addNamespace(string $prefix, string $baseDir, bool $prepend = false): void
Expected behavior
*public static* addNamespace($prefix, $baseDir, $prepend = false)
Actual behavior
*public static* addNamespace($prefix, $baseDir, $prepend = )
System Configuration
Ubuntu 20.04, PHP 8.0.21
The problem is that GenerateMarkdown uses
print_r
for rendering default values.print_r
is completely unsuitable for printing Boolean values because it rendersfalse
as empty string andtrue
as1
.I think that it would be better to use
var_export
instead.The text was updated successfully, but these errors were encountered: