mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 10:57:08 +01:00
15 lines
211 B
Markdown
15 lines
211 B
Markdown
# OverriddenMethodAccess
|
|
|
|
Emitted when a method is less accessible than its parent
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {
|
|
public function foo() : void {}
|
|
}
|
|
class B extends A {
|
|
protected function foo() : void {}
|
|
}
|
|
```
|