Your project uses legacy callable syntax instead of first-class callable syntax

More information: https://insight.symfony.com/what-we-analyse/php.use_first_class_callable_syntax

  1. if (self::isTable($lines)) {
  2. $html[] = self::renderTable($lines);
  3. } elseif (self::isList($lines)) {
  4. $html[] = self::renderList($lines);
  5. } else {
  6. $html[] = '<p>' . implode('<br>', array_map([self::class, 'inline'], $lines)) . '</p>';
    Use the first-class callable syntax ($this->method(...))
    Time to fix: about 15 minutes
    Read doc Open Issue Permalink Copy Prompt
    Last edited by clicshopping
  7. }
  8. }
  9. return implode("\n", $html);
  10. }