Skip to content

Commit a82975b

Browse files
Update workflow to fix issues with the concurrency check (#302)
Co-authored-by: WendellAdriel <11641518+WendellAdriel@users.noreply.github.com> Co-authored-by: WendellAdriel <me@wendelladriel.com>
1 parent a2dbe8c commit a82975b

27 files changed

+70
-52
lines changed

app/Concerns/PasswordValidationRules.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
namespace App\Concerns;
44

5+
use Illuminate\Contracts\Validation\Rule;
56
use Illuminate\Validation\Rules\Password;
67

78
trait PasswordValidationRules
89
{
910
/**
1011
* Get the validation rules used to validate passwords.
1112
*
12-
* @return array<int, \Illuminate\Contracts\Validation\Rule|array<mixed>|string>
13+
* @return array<int, Rule|array<mixed>|string>
1314
*/
1415
protected function passwordRules(): array
1516
{
@@ -19,7 +20,7 @@ protected function passwordRules(): array
1920
/**
2021
* Get the validation rules used to validate the current password.
2122
*
22-
* @return array<int, \Illuminate\Contracts\Validation\Rule|array<mixed>|string>
23+
* @return array<int, Rule|array<mixed>|string>
2324
*/
2425
protected function currentPasswordRules(): array
2526
{

app/Http/Middleware/HandleAppearance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HandleAppearance
1212
/**
1313
* Handle an incoming request.
1414
*
15-
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
15+
* @param Closure(Request): (Response) $next
1616
*/
1717
public function handle(Request $request, Closure $next): Response
1818
{

app/Http/Requests/Settings/TwoFactorAuthenticationRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Http\Requests\Settings;
44

5+
use Illuminate\Contracts\Validation\ValidationRule;
56
use Illuminate\Foundation\Http\FormRequest;
67
use Laravel\Fortify\Features;
78
use Laravel\Fortify\InteractsWithTwoFactorState;
@@ -21,7 +22,7 @@ public function authorize(): bool
2122
/**
2223
* Get the validation rules that apply to the request.
2324
*
24-
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
25+
* @return array<string, ValidationRule|array<mixed>|string>
2526
*/
2627
public function rules(): array
2728
{

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configureDefaults(): void
4444
->numbers()
4545
->symbols()
4646
->uncompromised()
47-
: null
47+
: null,
4848
);
4949
}
5050
}

bootstrap/providers.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

3+
use App\Providers\AppServiceProvider;
4+
use App\Providers\FortifyServiceProvider;
5+
36
return [
4-
App\Providers\AppServiceProvider::class,
5-
App\Providers\FortifyServiceProvider::class,
7+
AppServiceProvider::class,
8+
FortifyServiceProvider::class,
69
];

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
'previous_keys' => [
103103
...array_filter(
104-
explode(',', (string) env('APP_PREVIOUS_KEYS', ''))
104+
explode(',', (string) env('APP_PREVIOUS_KEYS', '')),
105105
),
106106
],
107107

config/auth.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use App\Models\User;
4+
35
return [
46

57
/*
@@ -62,7 +64,7 @@
6264
'providers' => [
6365
'users' => [
6466
'driver' => 'eloquent',
65-
'model' => env('AUTH_MODEL', App\Models\User::class),
67+
'model' => env('AUTH_MODEL', User::class),
6668
],
6769

6870
// 'users' => [

config/database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Illuminate\Support\Str;
4+
use Pdo\Mysql;
45

56
return [
67

@@ -59,7 +60,7 @@
5960
'strict' => true,
6061
'engine' => null,
6162
'options' => extension_loaded('pdo_mysql') ? array_filter([
62-
(PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
63+
(PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
6364
]) : [],
6465
],
6566

@@ -79,7 +80,7 @@
7980
'strict' => true,
8081
'engine' => null,
8182
'options' => extension_loaded('pdo_mysql') ? array_filter([
82-
(PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
83+
(PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
8384
]) : [],
8485
],
8586

config/session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
'cookie' => env(
131131
'SESSION_COOKIE',
132-
Str::slug((string) env('APP_NAME', 'laravel')).'-session'
132+
Str::slug((string) env('APP_NAME', 'laravel')).'-session',
133133
),
134134

135135
/*

eslint.config.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
2-
import prettier from 'eslint-config-prettier';
2+
import prettier from 'eslint-config-prettier/flat';
33
import importPlugin from 'eslint-plugin-import';
44
import vue from 'eslint-plugin-vue';
55

66
export default defineConfigWithVueTs(
77
vue.configs['flat/essential'],
88
vueTsConfigs.recommended,
9-
{
10-
ignores: ['vendor', 'node_modules', 'public', 'bootstrap/ssr', 'tailwind.config.js', 'vite.config.ts', 'resources/js/components/ui/*'],
11-
},
129
{
1310
plugins: {
1411
import: importPlugin,
@@ -19,6 +16,7 @@ export default defineConfigWithVueTs(
1916
alwaysTryTypes: true,
2017
project: './tsconfig.json',
2118
},
19+
node: true,
2220
},
2321
},
2422
rules: {
@@ -41,7 +39,22 @@ export default defineConfigWithVueTs(
4139
},
4240
},
4341
],
42+
'import/consistent-type-specifier-style': [
43+
'error',
44+
'prefer-top-level',
45+
],
4446
},
4547
},
46-
prettier,
48+
{
49+
ignores: [
50+
'vendor',
51+
'node_modules',
52+
'public',
53+
'bootstrap/ssr',
54+
'tailwind.config.js',
55+
'vite.config.ts',
56+
'resources/js/components/ui/*',
57+
],
58+
},
59+
prettier, // Turn off all rules that might conflict with Prettier
4760
);

0 commit comments

Comments
 (0)