s9e / TextFormatter

Text formatting library that supports BBCode, HTML and other markup via plugins. Handles emoticons, censors words, automatically embeds media and more.
MIT License
233 stars 36 forks source link

feat: add support for php 8.2 #212

Closed SychO9 closed 1 year ago

SychO9 commented 1 year ago

This should be the only deprecation warning when run on 8.2

JoshyPHP commented 1 year ago

Yeah, there's at least a couple of those in the codebase. I'm working on a PHP8.2 branch that should fix all of them.

The WIP branch is there: https://github.com/s9e/TextFormatter/tree/PHP8.2

The WIP branch currently uses get_called_class() (old PHP 5.x habits) but using static::class as you did seems preferable.

SychO9 commented 1 year ago

Cool, I'll leave it to you then!