Skip to content

Commit 5dba79b

Browse files
feat: Update PHP version to 8.2 in workflow, allow PHP 8.4 in composer, and simplify Turnstile component methods
1 parent 5cb0a3c commit 5dba79b

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^8.2|^8.3",
23+
"php": "^8.2|^8.3|^8.4",
2424
"coderflex/laravel-turnstile": "^1.0|^2.0",
2525
"illuminate/contracts": "^10.0|^11.0|^12.0",
2626
"spatie/laravel-package-tools": "^1.14.0"
@@ -30,7 +30,6 @@
3030
"larastan/larastan": "^2.8|^3.0",
3131
"laravel/pint": "^1.0",
3232
"nunomaduro/collision": "^7.0|^8.0",
33-
"nunomaduro/larastan": "^2.8.0|^3.1.0",
3433
"orchestra/testbench": "^8.0|^9.0|^10.0",
3534
"pestphp/pest": "^2.0|^3.7",
3635
"pestphp/pest-plugin-arch": "^2.0|^3.0",

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ parameters:
88
tmpDir: build/phpstan
99
checkOctaneCompatibility: true
1010
checkModelProperties: true
11-
checkMissingIterableValueType: false
1211

src/Forms/Components/Turnstile.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,17 @@ public function language(string $language): static
5151
return $this;
5252
}
5353

54-
/**
55-
* @return string
56-
*/
57-
public function getTheme()
54+
public function getTheme(): string
5855
{
5956
return $this->evaluate($this->theme);
6057
}
6158

62-
/**
63-
* @return string
64-
*/
65-
public function getSize()
59+
public function getSize(): string
6660
{
6761
return $this->evaluate($this->size);
6862
}
6963

70-
/**
71-
* @return string
72-
*/
73-
public function getLanguage()
64+
public function getLanguage(): string
7465
{
7566
return $this->evaluate($this->language);
7667
}

0 commit comments

Comments
 (0)