mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Laravel 12 support (#44)
* Laravel 12 support * bump dev dependencies * resolve phpstan issue, restrict version constraints * fix phpcsfixer CI action
This commit is contained in:
parent
f6fd5f4a55
commit
0a2eef4db4
4 changed files with 11 additions and 11 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
laravel: [10, 11]
|
||||
laravel: [10, 11, 12]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -61,6 +61,6 @@ jobs:
|
|||
- name: Commit changes from php-cs-fixer
|
||||
uses: EndBug/add-and-commit@v5
|
||||
with:
|
||||
author_name: "PHP CS Fixer"
|
||||
author_email: "phpcsfixer@example.com"
|
||||
author_name: "github-actions[bot]"
|
||||
author_email: "github-actions[bot]@users.noreply.github.com"
|
||||
message: Fix code style (php-cs-fixer)
|
||||
|
|
|
|||
|
|
@ -24,14 +24,14 @@
|
|||
},
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"illuminate/support": "^10.0|^11.0",
|
||||
"illuminate/view": "^10.0|^11.0"
|
||||
"illuminate/support": "^10.0|^11.0|^12.0",
|
||||
"illuminate/view": "^10.0|^11.0|^12.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"orchestra/testbench": "^8.0|^9.0",
|
||||
"nunomaduro/larastan": "^2.4",
|
||||
"pestphp/pest": "^2.0",
|
||||
"pestphp/pest-plugin-laravel": "^2.0",
|
||||
"orchestra/testbench": ">=8.0",
|
||||
"nunomaduro/larastan": ">=2.4",
|
||||
"pestphp/pest": ">=2.0",
|
||||
"pestphp/pest-plugin-laravel": ">=2.0",
|
||||
"intervention/image": "^2.7"
|
||||
},
|
||||
"extra": {
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ parameters:
|
|||
universalObjectCratesClasses:
|
||||
- Illuminate\Routing\Route
|
||||
- ArchTech\SEO\SEOManager
|
||||
checkMissingIterableValueType: false
|
||||
|
||||
ignoreErrors:
|
||||
- '#^Method ArchTech\\SEO\\SEOManager::flipp\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
|
||||
- '#^Method ArchTech\\SEO\\SEOManager::previewify\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
|
||||
- '#^Method ArchTech\\SEO\\SEOManager::render\(\) has parameter \$args with no type specified\.$#'
|
||||
- '#^Parameter \#1 \$value of function e expects#'
|
||||
- identifier: missingType.iterableValue
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ class SEOManager
|
|||
/** Has a specific tag been set? */
|
||||
public function hasRawTag(string $key): bool
|
||||
{
|
||||
return isset($this->tags[$key]) && ($this->tags[$key] !== null);
|
||||
return isset($this->tags[$key]);
|
||||
}
|
||||
|
||||
/** Has a specific meta tag been set? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue