1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

psalm-internal - PHPBCBF fixes

This commit is contained in:
Barney Laurance 2019-05-11 17:26:42 +01:00 committed by Matthew Brown
parent 31ae10fb00
commit cd16dc7ac3
2 changed files with 2 additions and 4 deletions

View File

@ -211,15 +211,13 @@ class ClassAnalyzer extends ClassLikeAnalyzer
}
}
if (
$parent_class_storage->psalmInternal &&
if ($parent_class_storage->psalmInternal &&
strpos($fq_class_name, trim($parent_class_storage->psalmInternal, '\\') . '\\') !== 0
) {
if (IssueBuffer::accepts(
new InternalClass(
$parent_fq_class_name . ' is internal to ' . $parent_class_storage->psalmInternal,
$code_location
),
array_merge($storage->suppressed_issues, $this->getSuppressedIssues())
)) {

View File

@ -582,7 +582,7 @@ class StaticCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
if ($class_storage->psalmInternal
&& $context->self
&& strpos($context->self, trim($class_storage->psalmInternal, '\\') . '\\') !== 0
) {
) {
if (IssueBuffer::accepts(
new InternalClass(
$fq_class_name . ' is marked internal to ' . $class_storage->psalmInternal,