Awzaw / AntiSpamPro

The best AntiSpam/Censor plugin for PocketMine?
MIT License
13 stars 11 forks source link

issue test API 3.0.0 line 275 e compile error #7

Closed teracube closed 6 years ago

teracube commented 6 years ago

PocketMine-MP/1202 https://jenkins.pmmp.io/job/PocketMine-MP/1202/changes https://poggit.pmmp.io/r/33693/AntiSpamPro_dev-29.phar

PocketMine-MP Crash Dump Tue Jun 19 22:33:50 CEST 2018

Error: Declaration of awzaw\antispampro\ProfanityFilter::__construct(awzaw\antispampro\AntiSpamPro $plugin) must be compatible with pocketmine\plugin\Plugin::__construct(pocketmine\plugin\PluginLoader $loader, pocketmine\Server $server, pocketmine\plugin\PluginDescription $description, string $dataFolder, string $file)
File: AntiSpamPro-master/src/awzaw/antispampro/ProfanityFilter
Line: 275
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: AntiSpamPro v1.4.0-7

Code:
[266]         $characterExpressions = array();
[267]         foreach ($this->characterSubstitutions as $character => $substitutions) {
[268]             $characterExpressions[$character] = $this->generateEscapedExpression(
[269]                             $substitutions, array(), '+?'
[270]                     ) . self::SEPARATOR_PLACEHOLDER;
[271]         }
[272] 
[273]         return $characterExpressions;
[274]     }
[275] }
[276] 
[277] 
[278] 
[279] 
[280] 
[281] 
[282] 
[283] 
[284] 
[285] 

Backtrace:

PocketMine-MP version: 3.0.1 [Protocol 261]
Git commit: dbda0442293fde226d4febf784633396b120a9ba
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.4
Zend version: 3.2.0
OS : Linux, linux
Awzaw commented 6 years ago

Changing the API version is not the same as updating the plugin... please use the latest poggit release.