Skip to content

Commit c0274cd

Browse files
Merge pull request #747 from RoboJackets/renovate/vimeo-psalm-7.x
Update dependency vimeo/psalm to v7.0.0-beta15
2 parents 731acc7 + dbcdb59 commit c0274cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+462
-117
lines changed

app/Console/Commands/Ping.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class Ping extends Command
3131

3232
/**
3333
* Execute the console command.
34+
*
35+
* @psalm-return 0|1
3436
*/
3537
public function handle(): int
3638
{

app/Exceptions/QuickBooksFault.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class QuickBooksFault extends Exception
1111
{
1212
/**
1313
* Construct a new instance.
14+
*
15+
* @psalm-mutation-free
1416
*/
1517
public function __construct(IPPFault $fault)
1618
{

app/HorizonHealthCheck.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class HorizonHealthCheck extends HealthCheck
2222
*/
2323
protected string $name = 'horizon';
2424

25+
/**
26+
* Construct a new instance of this health check.
27+
*
28+
* @psalm-mutation-free
29+
*/
2530
public function __construct(private readonly MasterSupervisorRepository $supervisorRepository)
2631
{
2732
}

app/Http/Controllers/EngagePurchaseRequestController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ public function update(EngagePurchaseRequest $purchaseRequest, UpdateEngagePurch
109109
return response()->json($purchaseRequest);
110110
}
111111

112+
/**
113+
* Simplify the finance stage name.
114+
*
115+
* @psalm-pure
116+
*/
112117
private static function cleanFinanceStageName(string $input): string
113118
{
114119
if (str_contains($input, ':')) {
@@ -137,7 +142,7 @@ private static function getUserByEmailAddress(string $email): User
137142

138143
$result = Sentry::wrapWithChildSpan(
139144
'ldap.get_user_by_username',
140-
static fn (): array => Container::getDefaultConnection()
145+
static fn (): array|\LdapRecord\Query\Collection => Container::getDefaultConnection()
141146
->query()
142147
->where('uid', '=', $parts[0])
143148
->select('sn', 'givenName', 'primaryUid', 'mail')

app/Http/Controllers/WorkerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __invoke(UpsertWorker $request): JsonResponse
4545
static function () use ($email): ?string {
4646
$result = Sentry::wrapWithChildSpan(
4747
'ldap.get_username_by_email',
48-
static fn (): array => Container::getDefaultConnection()
48+
static fn (): array|\LdapRecord\Query\Collection => Container::getDefaultConnection()
4949
->query()
5050
->where('mail', '=', $email)
5151
->select('primaryUid')

app/Http/Requests/UpdateEngagePurchaseRequest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class UpdateEngagePurchaseRequest extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
14-
public function authorize(): bool
16+
public function authorize(): true
1517
{
1618
return true;
1719
}
@@ -20,6 +22,8 @@ public function authorize(): bool
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpdateExpenseReport.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class UpdateExpenseReport extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
14-
public function authorize(): bool
16+
public function authorize(): true
1517
{
1618
return true;
1719
}
@@ -20,6 +22,8 @@ public function authorize(): bool
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpdateExpenseReportLine.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class UpdateExpenseReportLine extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
14-
public function authorize(): bool
16+
public function authorize(): true
1517
{
1618
return true;
1719
}
@@ -20,6 +22,8 @@ public function authorize(): bool
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UploadEngageAttachment.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class UploadEngageAttachment extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
14-
public function authorize(): bool
16+
public function authorize(): true
1517
{
1618
return true;
1719
}
@@ -20,6 +22,8 @@ public function authorize(): bool
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UploadWorkdayAttachment.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class UploadWorkdayAttachment extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
14-
public function authorize(): bool
16+
public function authorize(): true
1517
{
1618
return true;
1719
}
@@ -20,6 +22,8 @@ public function authorize(): bool
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

0 commit comments

Comments
 (0)