menu
#4873768 Constructor mrholler\login\YamlDataProvider::__construct() cannot declare a return type

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-07 22:40:02 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 7.4.16
Operating system: linux
System banner: Linux 37-140-198-174.cloudvps.regruhosting.ru 4.4.0-206-generic #238-Ubuntu SMP Tue Mar 16 07:52:37 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Constructor mrholler\login\YamlDataProvider::__construct() cannot declare a return type
File: plugins/LoginSystem/src/mrholler/login/YamlDataProvider
Line: #10
Error level: E_COMPILE_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

declare(strict_types=1);

namespace mrholler\login;

use pocketmine\utils\Config;
use mrholler\login\Main;

class YamlDataProvider {

private $plugin;
public $config;

public function __construct(Main $plugin) :void{
$this->plugin = $plugin;
$this->init();
}

public function init() :void{

Loaded Plugins

  • Show

Server Settings

  • Show