Skip to content

Commit 0a2eef4

Browse files
authored
Laravel 12 support (#44)
* Laravel 12 support * bump dev dependencies * resolve phpstan issue, restrict version constraints * fix phpcsfixer CI action
1 parent f6fd5f4 commit 0a2eef4

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
laravel: [10, 11]
14+
laravel: [10, 11, 12]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -61,6 +61,6 @@ jobs:
6161
- name: Commit changes from php-cs-fixer
6262
uses: EndBug/add-and-commit@v5
6363
with:
64-
author_name: "PHP CS Fixer"
65-
author_email: "phpcsfixer@example.com"
64+
author_name: "github-actions[bot]"
65+
author_email: "github-actions[bot]@users.noreply.github.com"
6666
message: Fix code style (php-cs-fixer)

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
"require": {
2626
"php": "^8.2",
27-
"illuminate/support": "^10.0|^11.0",
28-
"illuminate/view": "^10.0|^11.0"
27+
"illuminate/support": "^10.0|^11.0|^12.0",
28+
"illuminate/view": "^10.0|^11.0|^12.0"
2929
},
3030
"require-dev": {
31-
"orchestra/testbench": "^8.0|^9.0",
32-
"nunomaduro/larastan": "^2.4",
33-
"pestphp/pest": "^2.0",
34-
"pestphp/pest-plugin-laravel": "^2.0",
31+
"orchestra/testbench": ">=8.0",
32+
"nunomaduro/larastan": ">=2.4",
33+
"pestphp/pest": ">=2.0",
34+
"pestphp/pest-plugin-laravel": ">=2.0",
3535
"intervention/image": "^2.7"
3636
},
3737
"extra": {

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ parameters:
1010
universalObjectCratesClasses:
1111
- Illuminate\Routing\Route
1212
- ArchTech\SEO\SEOManager
13-
checkMissingIterableValueType: false
1413

1514
ignoreErrors:
1615
- '#^Method ArchTech\\SEO\\SEOManager::flipp\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
1716
- '#^Method ArchTech\\SEO\\SEOManager::previewify\(\) should return static\(ArchTech\\SEO\\SEOManager\)\|string but returns array\|string\|null\.$#'
1817
- '#^Method ArchTech\\SEO\\SEOManager::render\(\) has parameter \$args with no type specified\.$#'
1918
- '#^Parameter \#1 \$value of function e expects#'
19+
- identifier: missingType.iterableValue

src/SEOManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function tags(): array
240240
/** Has a specific tag been set? */
241241
public function hasRawTag(string $key): bool
242242
{
243-
return isset($this->tags[$key]) && ($this->tags[$key] !== null);
243+
return isset($this->tags[$key]);
244244
}
245245

246246
/** Has a specific meta tag been set? */

0 commit comments

Comments
 (0)