1 | <?php |
||
7 | class OauthClient extends Client |
||
8 | { |
||
9 | protected $dates = ['created_at', 'updated_at']; |
||
10 | protected $fillable = ['name', 'redirect', 'user_id', 'personal_access_client', 'password_client', 'revoked']; |
||
11 | public $searchable = ['name']; |
||
12 | |||
13 | public function getCreatedAtAttribute($value) |
||
17 | |||
18 | public function getUpdatedAtAttribute($value) |
||
22 | |||
23 | public static function boot() |
||
28 | } |
||
29 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.