| 1 | <?php namespace App\Modules\V1\Acl\Repositories; |
||
| 5 | class OauthClientRepository extends AbstractRepository |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Return the model full namespace. |
||
| 9 | * |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | protected function getModel() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Revoke the given client. |
||
| 19 | * |
||
| 20 | * @param integer $clientId |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function revoke($clientId) |
||
| 24 | { |
||
| 25 | $client = $this->find($clientId); |
||
| 26 | $client->tokens()->update(['revoked' => true]); |
||
| 27 | $client->forceFill(['revoked' => true])->save(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Revoke the given client. |
||
| 32 | * |
||
| 33 | * @param integer $clientId |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function revoke($clientId) |
||
| 40 | } |
||
| 41 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: