for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Same as MarkdownText but Extra markup is enabled by default.
*/
class MarkdownTextExtra extends MarkdownText
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* Return MarkdownExtra content as HTML for templates
* @return string HTML
public function forTemplate()
return $this->MarkdownExtraAsHTML();
}
* Return an instance of the MarkdownTextareaField
* @param string $title
$title
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @param array $params
$params
array|null
* @return MarkdownTextareaField
public function scaffoldFormField($title = null, $params = null)
$field = new MarkdownTextareaField($this->name, $title);
return $field->enableExtra();
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.