Skip to content

Commit ee1d47b

Browse files
PHP 8.4 support (#89)
* PHP 8.4 support * Should fix static analysis
1 parent 1a8920b commit ee1d47b

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
/.editorconfig export-ignore
1313
/.styleci.yml export-ignore
1414
/composer.lock export-ignore
15+
/phpstan.neon export-ignore

.github/workflows/php.yml

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
- 8.1
5858
- 8.2
5959
- 8.3
60+
- 8.4
6061
laravel-constraint:
6162
- 10.*
6263
- 11.*

phpstan.neon

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
ignoreErrors:
3+
- '#Trait Laragear\\TwoFactor\\TwoFactorAuthentication is used zero times and is not analysed\.#'

src/Models/TwoFactorAuthentication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @property null|\Illuminate\Support\Carbon|\DateTime $updated_at
3838
* @property null|\Illuminate\Support\Carbon|\DateTime $created_at
3939
*
40-
* @method static \Database\Factories\Laragear\TwoFactor\TwoFactorAuthenticationFactory<static> factory($count = null, $state = [])
40+
* @method static \Database\Factories\Laragear\TwoFactor\TwoFactorAuthenticationFactory factory($count = null, $state = [])
4141
*/
4242
class TwoFactorAuthentication extends Model implements TwoFactorTotp
4343
{

src/TwoFactorServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function publishFiles(): void
8181
*/
8282
protected function publishMigrations(): void
8383
{
84-
if (method_exists($this, 'publishesMigrations')) {
84+
if (method_exists($this, 'publishesMigrations')) { // @phpstan-ignore-line
8585
$this->publishesMigrations([static::MIGRATIONS => $this->app->databasePath('migrations')], 'migrations');
8686

8787
return;

0 commit comments

Comments
 (0)