for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This field lets you put an success message box into your backend.
*
* <code>
* SuccessMessage::create(
* $content = 'your request was successful submitted.'
* )
* </code>
* or with the optional name parameter
* $content = 'your warning',
* $name = 'fieldName
*/
class SuccessMessage
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.
{
* @var string
public static $CSSClass = 'good';
* creates a message box.
* @param string $message
* @param string $name (optional)
$name
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.
* @return MessageBoxField
public static function create($message, $name = null)
return Message::generic($message, self::$CSSClass, $name);
}
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.