if ( $module ) {
$dataPath = $this->getThemeImagesPath( $theme, $module );
if ( !$dataPath ) {
- return false;
+ return [];
}
} else {
// Backwards-compatibility for things that probably shouldn't have used this class...
$dataPath->getRemoteBasePath()
);
} else {
+ // @phan-suppress-next-line PhanTypeSuspiciousStringExpression
$path = dirname( $dataPath ) . '/' . $path;
}
};