Skip to content

Commit 2bc9d9b

Browse files
authored
PHP 8 Compat: declare class properties (#265)
1 parent 511b5f6 commit 2bc9d9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

syntaxhighlighter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ class SyntaxHighlighter {
3131
public $encoded = false; // Used to mark that a character encode took place
3232
public $codeformat = false; // If set, SyntaxHighlighter::get_code_format() will return this value
3333
public $content_save_pre_ran = false; // It's possible for the "content_save_pre" filter to run multiple times, so keep track
34+
public $brush_names = array(); // Array of brush names for use.
35+
public $specialchars = array(); // Array of special characters to be encoded.
3436

35-
// Initalize the plugin by registering the hooks
3637
function __construct() {
3738
if ( ! function_exists( 'do_shortcodes_in_html_tags' ) )
3839
return;
@@ -621,7 +622,7 @@ function output_shortcodes_for_tinymce() {
621622
* Returns all shortcodes not handled by SyntaxHighlighter unchanged, so they
622623
* can be processed by their original handlers after SyntaxHighlighter has
623624
* run.
624-
*
625+
*
625626
* @param mixed $output The shortcode's returned value (false by default).
626627
* @param string $tag The name of the shortcode.
627628
* @param array|null $attr The shortcode attributes.

0 commit comments

Comments
 (0)