-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress errors for one line only #2
Labels
Comments
Closed
psalm:dev-master 53b81ac $args = [
$args[0],
$fields[$id]['options'],
$args[1],
];
$args[2] = array_merge_recursive(
((array)($args[2])),
[
'style' => [
'width:100%;',
],
]
);
if (isset($args, $args[2], $args[2]['value'])) {
/**
* @psalm-suppress InvalidArrayAccess
*/
unset($args[2]['value']);
} error not suppressed, incidentally also conflicts with php-cs-fixer 0ea4f7ed06ca55da (1.x release, not yet able to upgrade to 2.x), with |
Would also be useful to suppress things like DeprecatedMethod, where there's no structural element to attach the docblock to. class A {
/**
* @deprecated
*/
public static function b(): void {}
}
/**
* @psalm-suppress DeprecatedMethod
*/
A::b(); |
cc @nickyr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow single-line issue suppression e.g.
The text was updated successfully, but these errors were encountered: