1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00
This commit is contained in:
Brown 2020-08-31 16:40:16 -04:00
parent e8148980ff
commit 5905171b79
3 changed files with 10 additions and 9 deletions

View File

@ -566,7 +566,8 @@ abstract class ClassLikeAnalyzer extends SourceAnalyzer implements StatementsSou
$fq_class_name,
$property_name,
true,
$context
$context,
$code_location
);
if ($property_visible !== null) {

View File

@ -18,8 +18,8 @@ class PropertyVisibilityProvider
* string,
* string,
* bool,
* ?Context=,
* ?CodeLocation=
* Context,
* CodeLocation
* ) : ?bool>
* >
*/
@ -51,8 +51,8 @@ class PropertyVisibilityProvider
* string,
* string,
* bool,
* ?Context=,
* ?CodeLocation=
* Context,
* CodeLocation
* ) : ?bool $c
*
* @return void
@ -77,8 +77,8 @@ class PropertyVisibilityProvider
string $fq_classlike_name,
string $property_name,
bool $read_mode,
Context $context = null,
CodeLocation $code_location = null
Context $context,
CodeLocation $code_location
) {
foreach (self::$handlers[strtolower($fq_classlike_name)] as $property_handler) {
$property_visible = $property_handler(

View File

@ -20,7 +20,7 @@ interface PropertyVisibilityProviderInterface
string $fq_classlike_name,
string $property_name,
bool $read_mode,
?Context $context = null,
?CodeLocation $code_location = null
Context $context,
CodeLocation $code_location
);
}