1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
This commit is contained in:
Brown 2020-08-31 16:40:16 -04:00 committed by Daniil Gentili
parent a09e23d118
commit e34c9ab812
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
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
);
}