phpbb / epv

Extension Pre-Validator
GNU General Public License v2.0
9 stars 17 forks source link

Check for invalid depends_on() in migrations #52

Closed iMattPro closed 7 years ago

iMattPro commented 7 years ago

EPV should check that depends_on() array's contain strings that always start with a slash.

So this is valid:

static public function depends_on()
{
    return array('\foo\bar', '\bar\foo');
}

And we should error for any missing leading slashes:

static public function depends_on()
{
    return array('foo\bar', '\bar\foo');
}
avandenberghe commented 7 years ago

👍