You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interface Foo {
public function addSomething(string $message): void
}
class Bar implements Foo {
public function addSomething(string $message): void {
// not implemented for this class
}
}
Assume there are other classes that implement Foo where addSomething does work with the passed parameter. I get this error in phpcs:
What's the correct way to resolve this? I feel like adding a phpcs:ignore above each function adds comment bloat, but if that's the correct way, I guess I'll do it.
The text was updated successfully, but these errors were encountered:
Consider the following:
Assume there are other classes that implement Foo where
addSomething
does work with the passed parameter. I get this error in phpcs:What's the correct way to resolve this? I feel like adding a phpcs:ignore above each function adds comment bloat, but if that's the correct way, I guess I'll do it.
The text was updated successfully, but these errors were encountered: