mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-11-18 21:35:12 +00:00
WEB: Fix warning
This commit is contained in:
1 parent
76eb8f052a
commit
baf10b1d1a
1 file changed
+1
-1
@@ -10,7 +10,7 @@ abstract class BasicObject {
|
||||
*
|
||||
* @param mixed &$data the input
|
||||
*/
|
||||
public function toArray(&$data) {
|
||||
static public function toArray(&$data) {
|
||||
if (!is_array($data) || !array_key_exists(0, $data)) {
|
||||
$data = array($data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user