Remove nullable for default null para

This commit is contained in:
Dennis Eichhorn 2018-03-14 09:50:58 +01:00 committed by GitHub
parent 3b45692ff1
commit 35b45cbb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;