MDL-60281 general: various strict corrections for PHP7.2
commit78da366b560f284eab0ded2f63cece4870cf37e5
authorMarina Glancy <marina@moodle.com>
Mon, 2 Oct 2017 01:19:39 +0000 (2 09:19 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 16 Oct 2017 01:37:20 +0000 (16 09:37 +0800)
tree7ef5e79b728d420a707a4f34d87ed0d2a41d7b64
parentd28eb51ddc3b5c6d1df0ddc6bf83adb62b28bbb0
MDL-60281 general: various strict corrections for PHP7.2

- count() can only be called on arrays or Countable, it can not be called on null
- recordset is neither so iterator_count() should be used
- instanceof or get_class() can not be applied to non-objects
- class methods must have the same arguments as methods in parent class
backup/util/structure/base_nested_element.class.php
cache/disabledlib.php
filter/urltolink/filter.php
lib/navigationlib.php
lib/outputcomponents.php
lib/phpunit/classes/base_testcase.php
user/tests/userlib_test.php