Fix PermissionKey::add() declaration

- Add `static` declaration to `PermissionKey::add()`
Merge pull request #1582 from mkly/fix_permission_key_add_declaration

Fix PermissionKey::add() declaration