mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Fix some PHPStan errors (#12)
* Fix some PHPStan errors * Fix return type of SEOManager::meta * Fix CS * Update SEOManager.php * Update helpers.php * Update SEOManager.php
This commit is contained in:
parent
7b24a50bd6
commit
20f55c3342
3 changed files with 18 additions and 13 deletions
10
phpstan.neon
10
phpstan.neon
|
|
@ -10,11 +10,9 @@ parameters:
|
|||
universalObjectCratesClasses:
|
||||
- Illuminate\Routing\Route
|
||||
- ArchTech\SEO\SEOManager
|
||||
checkMissingIterableValueType: false
|
||||
|
||||
ignoreErrors:
|
||||
- '#SEOManager\|array\|string\|null#'
|
||||
- '#string\|false given#'
|
||||
- '#flipp\(\) should return#'
|
||||
- '#\_\_set\(\) has no return typehint specified#'
|
||||
|
||||
checkMissingIterableValueType: false
|
||||
# Waiting for https://github.com/phpstan/phpstan/issues/5706
|
||||
- '#^Cannot call method (flipp|get|set)\(\) on ArchTech\\SEO\\SEOManager\|array\|string\|null\.$#'
|
||||
- '#^Method ArchTech\\SEO\\SEOManager::flipp\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue