MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
This commit is contained in:
@@ -904,7 +904,7 @@ class api {
|
||||
* @param array $hasanycapability Array of capabilities passed to {@link has_any_capability()} in each context.
|
||||
* @return context[] An array of contexts where keys are context IDs.
|
||||
*/
|
||||
public static function get_related_contexts($context, $includes, array $hasanycapability = null) {
|
||||
public static function get_related_contexts($context, $includes, ?array $hasanycapability = null) {
|
||||
global $DB;
|
||||
static::require_enabled();
|
||||
|
||||
@@ -4563,7 +4563,7 @@ class api {
|
||||
* @return void
|
||||
*/
|
||||
protected static function apply_competency_rules_from_usercompetency(user_competency $usercompetency,
|
||||
competency $competency = null, $overridegrade = false) {
|
||||
?competency $competency = null, $overridegrade = false) {
|
||||
|
||||
// Perform some basic checks.
|
||||
if (!$usercompetency->get('proficiency')) {
|
||||
|
||||
Reference in New Issue
Block a user