MDL-63267 privacy: Remove use of int hints
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user