mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
Fix api
This commit is contained in:
parent
e8148980ff
commit
5905171b79
@ -566,7 +566,8 @@ abstract class ClassLikeAnalyzer extends SourceAnalyzer implements StatementsSou
|
|||||||
$fq_class_name,
|
$fq_class_name,
|
||||||
$property_name,
|
$property_name,
|
||||||
true,
|
true,
|
||||||
$context
|
$context,
|
||||||
|
$code_location
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($property_visible !== null) {
|
if ($property_visible !== null) {
|
||||||
|
@ -18,8 +18,8 @@ class PropertyVisibilityProvider
|
|||||||
* string,
|
* string,
|
||||||
* string,
|
* string,
|
||||||
* bool,
|
* bool,
|
||||||
* ?Context=,
|
* Context,
|
||||||
* ?CodeLocation=
|
* CodeLocation
|
||||||
* ) : ?bool>
|
* ) : ?bool>
|
||||||
* >
|
* >
|
||||||
*/
|
*/
|
||||||
@ -51,8 +51,8 @@ class PropertyVisibilityProvider
|
|||||||
* string,
|
* string,
|
||||||
* string,
|
* string,
|
||||||
* bool,
|
* bool,
|
||||||
* ?Context=,
|
* Context,
|
||||||
* ?CodeLocation=
|
* CodeLocation
|
||||||
* ) : ?bool $c
|
* ) : ?bool $c
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
@ -77,8 +77,8 @@ class PropertyVisibilityProvider
|
|||||||
string $fq_classlike_name,
|
string $fq_classlike_name,
|
||||||
string $property_name,
|
string $property_name,
|
||||||
bool $read_mode,
|
bool $read_mode,
|
||||||
Context $context = null,
|
Context $context,
|
||||||
CodeLocation $code_location = null
|
CodeLocation $code_location
|
||||||
) {
|
) {
|
||||||
foreach (self::$handlers[strtolower($fq_classlike_name)] as $property_handler) {
|
foreach (self::$handlers[strtolower($fq_classlike_name)] as $property_handler) {
|
||||||
$property_visible = $property_handler(
|
$property_visible = $property_handler(
|
||||||
|
@ -20,7 +20,7 @@ interface PropertyVisibilityProviderInterface
|
|||||||
string $fq_classlike_name,
|
string $fq_classlike_name,
|
||||||
string $property_name,
|
string $property_name,
|
||||||
bool $read_mode,
|
bool $read_mode,
|
||||||
?Context $context = null,
|
Context $context,
|
||||||
?CodeLocation $code_location = null
|
CodeLocation $code_location
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user