1
0
Fork 0
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:
Viktor Szépe 2021-11-16 11:46:04 +01:00 committed by GitHub
parent 7b24a50bd6
commit 20f55c3342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 13 deletions

View file

@ -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\.$#'