1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Mark FunctionLikeStorage::setParams()/addParam() as internal

This commit is contained in:
Claas Augner 2021-07-09 00:58:29 +02:00 committed by GitHub
parent b91e00b03f
commit 9a78b2fbc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,8 @@ abstract class FunctionLikeStorage
} }
/** /**
* @internal
*
* @param list<FunctionLikeParameter> $params * @param list<FunctionLikeParameter> $params
*/ */
public function setParams(array $params): void public function setParams(array $params): void
@ -286,6 +288,9 @@ abstract class FunctionLikeStorage
$this->param_lookup = array_fill_keys($param_names, true); $this->param_lookup = array_fill_keys($param_names, true);
} }
/**
* @internal
*/
public function addParam(FunctionLikeParameter $param, bool $lookup_value = null): void public function addParam(FunctionLikeParameter $param, bool $lookup_value = null): void
{ {
$this->params[] = $param; $this->params[] = $param;