moodleou / moodle-mod_oublog

Alternative blog module for Moodle 2 (including course blogs)
31 stars 27 forks source link

Deprecated curly braces for array and string offsets in PHP 7.4 #118

Open alex-rowe opened 3 years ago

alex-rowe commented 3 years ago

https://github.com/moodleou/moodle-mod_oublog/blob/5377524a308592f01e27bc54eaed2591d85b4cb3/pluginfile.php#L34

The following warning was shown in PHP Compatibility checks for PHP 7.4

FILE: .../mod/oublog/pluginfile.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 34 | WARNING | [x] Curly brace syntax for accessing array elements
    |         |     and string offsets has been deprecated in PHP
    |         |     7.4. Found: $relativepath{0}
    |         |     (PHPCompatibility.Syntax.RemovedCurlyBraceArrayAccess.Found)
----------------------------------------------------------------------