Skip to content

Commit

Permalink
move stan ignoreError to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PoOwAa committed Feb 23, 2021
1 parent 7d291d9 commit 68cf48e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions phpstan.neon
Expand Up @@ -4,6 +4,4 @@ parameters:
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '%Call to an undefined method Illuminate\\\Cache\\\CacheManager::remember\(\).%'
- '%Parameter #1 \$function of function call_user_func_array expects callable\(\)\: mixed, array\(hisorange\\BrowserDetect\\Contracts\\ResultInterface, string\) given\.%'
- '%Parameter #1 \$function of function call_user_func_array expects callable\(\)\: mixed, array\(hisorange\\BrowserDetect\\Parser, string\) given\.%'
- '%Call to an undefined method Illuminate\\\Cache\\\CacheManager::remember\(\).%'
2 changes: 2 additions & 0 deletions src/Parser.php
Expand Up @@ -99,6 +99,7 @@ public function __call(string $method, array $params)

// Reflect a method.
if (method_exists($result, $method)) {
/* @phpstan-ignore-next-line */
return call_user_func_array([$result, $method], $params);
}

Expand All @@ -121,6 +122,7 @@ public static function __callStatic(string $method, array $params)
static::$instance = new static();
}

/* @phpstan-ignore-next-line */
return call_user_func_array([static::$instance, $method], $params);
}

Expand Down

0 comments on commit 68cf48e

Please sign in to comment.