Skip to content

Commit

Permalink
Merge pull request #31 from hemberger/php-8.2
Browse files Browse the repository at this point in the history
Fix PHP 8.2 warnings
  • Loading branch information
charrondev authored Jan 17, 2023
2 parents 9265e87 + 6ce4fbb commit f6b875f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BBCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ class BBCode {
public $debug; // Enable debugging mode
protected $max_smileys; // Maximum number of smileys that can be used in parse
protected $escape_content; // Encode HTML. POTENTIALLY DANGEROUS IF DISABLED. ONLY DISABLE IF YOU KNOW WHAT YOURE DOING.
protected $lexer; // BBCodeLexer created when calling parse
protected $stack; // The token stack is used to perform a document-tree walk

/**
* Initialize a new instance of the {@link BBCode} class.
Expand All @@ -245,7 +247,7 @@ public function __construct(BBCodeLibrary $library = null) {
$this->lost_start_tags = [];
$this->start_tags = [];
$this->tag_marker = '[';
$this->allow_ampsersand = false;
$this->allow_ampersand = false;
$this->current_class = $this->root_class;
$this->debug = false;
$this->ignore_newlines = false;
Expand Down

0 comments on commit f6b875f

Please sign in to comment.