banbuilder icon indicating copy to clipboard operation
banbuilder copied to clipboard

PHP 8.2 Support (Dynamic Properties are deprecated)

Open leighrolfe opened this issue 2 years ago • 3 comments

Hi, I'm getting the warning.

PHP Deprecated: Creation of dynamic property Snipe\BanBuilder\CensorWords::$replacer is deprecated in /vendor/snipe/banbuilder/src/CensorWords.php on line 29

A quick look at the code suggests it could be fixed just by declaring $replacer in the class.

leighrolfe avatar Aug 23 '23 02:08 leighrolfe

Hello!

I came across this issue and noticed that it was fixed by https://github.com/snipe/banbuilder/pull/110 .

@snipe Any chance you could please make a new release so that this fix can be pulled in via an ordinary version upgrade?

matt-harvey avatar Jun 24 '25 00:06 matt-harvey

I legit didn't think people were using this anymore - but sure.

snipe avatar Jun 24 '25 02:06 snipe

If I may ask, what's your use-case here. This library is deeply flawed, as is every spoken language. So, how on earth did you find this one? And why are you using it now?

snipe avatar Jun 24 '25 02:06 snipe