Skip to content

Commit

Permalink
PHP 8.4 support (#89)
Browse files Browse the repository at this point in the history
* PHP 8.4 support

* Should fix static analysis
  • Loading branch information
DarkGhostHunter authored Jan 29, 2025
1 parent 1a8920b commit ee1d47b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
/.editorconfig export-ignore
/.styleci.yml export-ignore
/composer.lock export-ignore
/phpstan.neon export-ignore
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- 8.1
- 8.2
- 8.3
- 8.4
laravel-constraint:
- 10.*
- 11.*
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
ignoreErrors:
- '#Trait Laragear\\TwoFactor\\TwoFactorAuthentication is used zero times and is not analysed\.#'
2 changes: 1 addition & 1 deletion src/Models/TwoFactorAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @property null|\Illuminate\Support\Carbon|\DateTime $updated_at
* @property null|\Illuminate\Support\Carbon|\DateTime $created_at
*
* @method static \Database\Factories\Laragear\TwoFactor\TwoFactorAuthenticationFactory<static> factory($count = null, $state = [])
* @method static \Database\Factories\Laragear\TwoFactor\TwoFactorAuthenticationFactory factory($count = null, $state = [])
*/
class TwoFactorAuthentication extends Model implements TwoFactorTotp
{
Expand Down
2 changes: 1 addition & 1 deletion src/TwoFactorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function publishFiles(): void
*/
protected function publishMigrations(): void
{
if (method_exists($this, 'publishesMigrations')) {
if (method_exists($this, 'publishesMigrations')) { // @phpstan-ignore-line
$this->publishesMigrations([static::MIGRATIONS => $this->app->databasePath('migrations')], 'migrations');

return;
Expand Down

0 comments on commit ee1d47b

Please sign in to comment.