Skip to content
Permalink
Browse files

Fix read flags

  • Loading branch information
muglug committed Jan 5, 2020
1 parent fbf66ba commit d4ef5c2a4a001d9fa84fd3d2cc8bf8f1fed19133
@@ -183,7 +183,7 @@ public static function analyzeInstance(

$codebase->properties->propertyExists(
$property_id,
false,
true,
$statements_analyzer,
$context,
$context->collect_references
@@ -484,7 +484,7 @@ public static function analyzeInstance(
$property_id = $fq_class_name . '::$' . $prop_name;

if ($codebase->methodExists($fq_class_name . '::__get')
&& (!$codebase->properties->propertyExists($property_id, false, $statements_analyzer, $context)
&& (!$codebase->properties->propertyExists($property_id, true, $statements_analyzer, $context)
|| ($stmt_var_id !== '$this'
&& $fq_class_name !== $context->self
&& ClassLikeAnalyzer::checkPropertyVisibility(
@@ -601,7 +601,7 @@ public static function analyzeInstance(

if (!$codebase->properties->propertyExists(
$property_id,
false,
true,
$statements_analyzer,
$context,
$context->collect_references ? new CodeLocation($statements_analyzer->getSource(), $stmt) : null
@@ -611,7 +611,7 @@ public static function analyzeInstance(
&& $context->self
&& $codebase->properties->propertyExists(
$context->self . '::$' . $prop_name,
false,
true,
$statements_analyzer,
$context,
$context->collect_references ? new CodeLocation($statements_analyzer->getSource(), $stmt) : null
@@ -1075,7 +1075,7 @@ public static function analyzeStatic(
// log the appearance
$codebase->properties->propertyExists(
$property_id,
false,
true,
$statements_analyzer,
$context,
new CodeLocation($statements_analyzer->getSource(), $stmt)
@@ -1099,7 +1099,7 @@ public static function analyzeStatic(

if (!$codebase->properties->propertyExists(
$property_id,
false,
true,
$statements_analyzer,
$context,
$context->collect_references ? new CodeLocation($statements_analyzer->getSource(), $stmt) : null

0 comments on commit d4ef5c2

Please sign in to comment.
You can’t perform that action at this time.