* lib: declare the parameter's type and return type of the get() method.

This commit is contained in:
liugang
2023-05-18 15:13:45 +08:00
parent c7ffe34194
commit efbe41395d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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. */