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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
laravel: [10, 11]
|
laravel: [10, 11, 12]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -61,6 +61,6 @@ jobs:
|
||||||
- name: Commit changes from php-cs-fixer
|
- name: Commit changes from php-cs-fixer
|
||||||
uses: EndBug/add-and-commit@v5
|
uses: EndBug/add-and-commit@v5
|
||||||
with:
|
with:
|
||||||
author_name: "PHP CS Fixer"
|
author_name: "github-actions[bot]"
|
||||||
author_email: "phpcsfixer@example.com"
|
author_email: "github-actions[bot]@users.noreply.github.com"
|
||||||
message: Fix code style (php-cs-fixer)
|
message: Fix code style (php-cs-fixer)
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,14 @@
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"illuminate/support": "^10.0|^11.0",
|
"illuminate/support": "^10.0|^11.0|^12.0",
|
||||||
"illuminate/view": "^10.0|^11.0"
|
"illuminate/view": "^10.0|^11.0|^12.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "^8.0|^9.0",
|
"orchestra/testbench": ">=8.0",
|
||||||
"nunomaduro/larastan": "^2.4",
|
"nunomaduro/larastan": ">=2.4",
|
||||||
"pestphp/pest": "^2.0",
|
"pestphp/pest": ">=2.0",
|
||||||
"pestphp/pest-plugin-laravel": "^2.0",
|
"pestphp/pest-plugin-laravel": ">=2.0",
|
||||||
"intervention/image": "^2.7"
|
"intervention/image": "^2.7"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ parameters:
|
||||||
universalObjectCratesClasses:
|
universalObjectCratesClasses:
|
||||||
- Illuminate\Routing\Route
|
- Illuminate\Routing\Route
|
||||||
- ArchTech\SEO\SEOManager
|
- ArchTech\SEO\SEOManager
|
||||||
checkMissingIterableValueType: false
|
|
||||||
|
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#^Method ArchTech\\SEO\\SEOManager::flipp\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
|
- '#^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::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\.$#'
|
- '#^Method ArchTech\\SEO\\SEOManager::render\(\) has parameter \$args with no type specified\.$#'
|
||||||
- '#^Parameter \#1 \$value of function e expects#'
|
- '#^Parameter \#1 \$value of function e expects#'
|
||||||
|
- identifier: missingType.iterableValue
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ class SEOManager
|
||||||
/** Has a specific tag been set? */
|
/** Has a specific tag been set? */
|
||||||
public function hasRawTag(string $key): bool
|
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? */
|
/** Has a specific meta tag been set? */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue