* lib: declare the parameter's type and return type of the get() method.
This commit is contained in:
@@ -1338,7 +1338,7 @@ class baseFixer
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function get($fields = '')
|
||||
public function get(string $fields = ''): object
|
||||
{
|
||||
$fields = str_replace(' ', '', trim($fields));
|
||||
foreach($this->data as $field => $value) $this->specialChars($field);
|
||||
|
||||
@@ -43,7 +43,7 @@ class validater extends baseValidater
|
||||
*/
|
||||
class fixer extends baseFixer
|
||||
{
|
||||
public function get($fields = '')
|
||||
public function get(string $fields = ''): object
|
||||
{
|
||||
global $config;
|
||||
/* Get extend field by flow. */
|
||||
|
||||
Reference in New Issue
Block a user