フラグ引数アンチパターンを書いた話


Fatal error: Uncaught Error: Call to a member function id() on array in /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'public void Wri...') #3 /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('public void Wri...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): Crayo in /home/bonjin6770/www/wordpress-blog/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36