mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Remove nullable for default null para
This commit is contained in:
parent
3b45692ff1
commit
35b45cbb5b
|
|
@ -318,7 +318,7 @@ class Account implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function hasPermission(int $permission, ?int $unit = null, ?string $app = null, ?string $module = null, ?int $type = null, ?int $element = null, ?int $component = null) : bool
|
||||
public function hasPermission(int $permission, int $unit = null, string $app = null, string $module = null, int $type = null, int $element = null, int $component = null) : bool
|
||||
{
|
||||
$app = $app !== null ? strtolower($app) : $app;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user