Merge branch 'MDL-84936' of https://github.com/marinaglancy/moodle
This commit is contained in:
@@ -659,11 +659,11 @@ abstract class base {
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
replacement: 'base::set_sectionnum',
|
||||
since: '5.0',
|
||||
since: '4.4',
|
||||
mdl: 'MDL-80248',
|
||||
final: true,
|
||||
)]
|
||||
public function set_section_number(): void {
|
||||
public function set_section_number(int $singlesection): void {
|
||||
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
|
||||
}
|
||||
|
||||
@@ -707,12 +707,13 @@ abstract class base {
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
replacement: 'base::get_sectionnum',
|
||||
since: '5.0',
|
||||
since: '4.4',
|
||||
mdl: 'MDL-80248',
|
||||
final: true,
|
||||
)]
|
||||
public function get_section_number(): void {
|
||||
public function get_section_number(): int {
|
||||
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -146,11 +146,17 @@ class stateactions {
|
||||
*/
|
||||
#[\core\attribute\deprecated(
|
||||
replacement: 'stateactions::section_move_after',
|
||||
since: '5.0',
|
||||
since: '4.4',
|
||||
mdl: 'MDL-77038',
|
||||
final: true,
|
||||
)]
|
||||
public function section_move(): void {
|
||||
public function section_move(
|
||||
stateupdates $updates,
|
||||
stdClass $course,
|
||||
array $ids,
|
||||
?int $targetsectionid = null,
|
||||
?int $targetcmid = null
|
||||
): void {
|
||||
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user