Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
3d8455df
Verified
Commit
3d8455df
authored
Feb 02, 2021
by
David Beniamine
Browse files
Make plugin compatible with php 7.0
parent
a0f99732
Changes
3
Hide whitespace changes
Inline
Side-by-side
classes/fetch/fetcher.php
View file @
3d8455df
...
...
@@ -53,7 +53,7 @@ class fetcher
/**
* @return \Stdclass {code, message}
*/
public
function
getLastError
()
:
?
\
Stdclass
public
function
getLastError
()
{
return
(
object
)
$this
->
lastError
;
}
...
...
classes/fetch/moodlefetcher.php
View file @
3d8455df
...
...
@@ -35,7 +35,7 @@ abstract class moodlefetcher
return
\
rtrim
(
$CFG
->
labnbook_api_url
,
'/'
)
.
'/v1/redirect'
;
}
public
function
getLastError
()
:
?
\
Stdclass
public
function
getLastError
()
{
return
$this
->
fetcher
->
getLastError
();
}
...
...
classes/fetch/user.php
View file @
3d8455df
...
...
@@ -76,7 +76,7 @@ class user extends moodlefetcher
* @param array $teamconfig
* @return object teamconfig
*/
public
function
useMission
(
int
$missionId
,
int
$courseId
,
string
$coursename
,
?int
$groupId
=
null
,
array
$teamconfig
)
public
function
useMission
(
$missionId
,
$courseId
,
$coursename
,
$groupId
=
null
,
$teamconfig
)
{
return
$this
->
fetch
(
...
...
@@ -102,7 +102,7 @@ class user extends moodlefetcher
* @param array $teamconfig
* @return object teamconfig
*/
public
function
updateMissionUse
(
int
$missionId
,
int
$courseId
,
string
$coursename
,
?int
$groupId
=
null
,
array
$teamconfig
)
public
function
updateMissionUse
(
$missionId
,
$courseId
,
$coursename
,
$groupId
=
null
,
$teamconfig
)
{
return
$this
->
fetch
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment