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:
Dylan K. Taylor
2020-01-11 21:20:55 +00:00
parent 0a39e580e9
commit 8794292788
11 changed files with 36 additions and 40 deletions

View File

@ -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
*/