mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
remove &$var reference notations in phpdoc
this isn't required by the spec and PHPStan chokes on it. I was previously having it ignore these errors, but it turns out that PHPStan is not making use of extended typeinfo provided if it can't parse the tag, which is problematic on level 6 and also a problem for array-of-type. Therefore, we are going to have to take the hit.
This commit is contained in:
@ -106,10 +106,10 @@ class Config{
|
||||
];
|
||||
|
||||
/**
|
||||
* @param string $file Path of the file to be loaded
|
||||
* @param int $type Config type to load, -1 by default (detect)
|
||||
* @param array $default Array with the default values that will be written to the file if it did not exist
|
||||
* @param null &$correct Sets correct to true if everything has been loaded correctly
|
||||
* @param string $file Path of the file to be loaded
|
||||
* @param int $type Config type to load, -1 by default (detect)
|
||||
* @param array $default Array with the default values that will be written to the file if it did not exist
|
||||
* @param null $correct reference parameter, Sets correct to true if everything has been loaded correctly
|
||||
*/
|
||||
public function __construct(string $file, int $type = Config::DETECT, array $default = [], &$correct = null){
|
||||
$this->load($file, $type, $default);
|
||||
@ -507,7 +507,7 @@ class Config{
|
||||
|
||||
/**
|
||||
* @param array $default
|
||||
* @param array &$data
|
||||
* @param array $data reference parameter
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
|
Reference in New Issue
Block a user