MDL-63267 privacy: Remove use of int hints

This commit is contained in:
Andrew Nicols
2018-10-28 18:16:12 +08:00
parent a94a0c565b
commit e899bccd8e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ class provider implements
* @param int $itemid Item ID to export on.
* @param array $subcontext Directory location to export to.
*/
public static function export_item_data(\context $context, int $itemid, array $subcontext) {
public static function export_item_data(\context $context, $itemid, array $subcontext) {
global $DB;
$sql = "SELECT gi.id AS instanceid, gd.id AS definitionid, gd.method
@@ -170,7 +170,7 @@ class provider implements
* @param \context $context The context to delete on.
* @param int|null $itemid An optional item ID to refine the deletion.
*/
public static function delete_instance_data(\context $context, int $itemid = null) {
public static function delete_instance_data(\context $context, $itemid = null) {
global $DB;
$itemsql = '';
$params = ['contextid' => $context->id];
@@ -182,7 +182,7 @@ class test_legacy_polyfill_gradingform_provider implements
*
* @return stdClass The data to export.
*/
protected static function _get_gradingform_export_data(\context $context, $definition, int $userid) {
protected static function _get_gradingform_export_data(\context $context, $definition, $userid) {
static::$mock->get_return_value(__FUNCTION__, func_get_args());
}
@@ -207,7 +207,7 @@ class test_legacy_polyfill_gradingform_provider implements
* @param int $userid The user whose information is to be deleted.
* @param context $context Context owner of the data.
*/
protected static function _delete_gradingform_for_userid(int $userid, \context $context) {
protected static function _delete_gradingform_for_userid($userid, \context $context) {
static::$mock->get_return_value(__FUNCTION__, func_get_args());
}
}