Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Oct 12, 2022
1 parent 3ac0bce commit e43c6c1
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -557,7 +557,11 @@ public function start(PhpParser\Node\FunctionLike $stmt, bool $fake_method = fal
= $classlike_storage->appearing_method_ids[$method_name_lc]
= $method_id;

if (!$stmt->isPrivate() || $method_name_lc === '__construct' || $method_name_lc === '__clone' || $classlike_storage->is_trait) {
if (!$stmt->isPrivate()
|| $method_name_lc === '__construct'
|| $method_name_lc === '__clone'
|| $classlike_storage->is_trait
) {
$classlike_storage->inheritable_method_ids[$method_name_lc] = $method_id;
}

Expand Down

0 comments on commit e43c6c1

Please sign in to comment.