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:
parent
31ae10fb00
commit
cd16dc7ac3
@ -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())
|
||||
)) {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user