mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Allow suppressing UnusedClass on specific classes
This allows suppressing UnusedClass with either `referencedMethod` or `@psalm-suppress` Fixes vimeo/psalm#1353
This commit is contained in:
parent
24cdb6e1d3
commit
cb453a8da9
@ -664,8 +664,10 @@ class ClassLikes
|
||||
if (IssueBuffer::accepts(
|
||||
new UnusedClass(
|
||||
'Class ' . $classlike_storage->name . ' is never used',
|
||||
$classlike_storage->location
|
||||
)
|
||||
$classlike_storage->location,
|
||||
$classlike_storage->name
|
||||
),
|
||||
$classlike_storage->suppressed_issues
|
||||
)) {
|
||||
// fall through
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
namespace Psalm\Issue;
|
||||
|
||||
class UnusedClass extends CodeIssue
|
||||
class UnusedClass extends ClassIssue
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user