Skip to content

Commit

Permalink
Update Phan ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Feb 12, 2025
1 parent 4a45518 commit dc718ee
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@
'PhanTypeInvalidCallableArrayKey',
'PhanTypeInvalidCallableArraySize',
'PhanTypeMismatchArgument',
'PhanTypeMismatchArgumentInternal',
'PhanTypeMismatchArgumentProbablyReal',
'PhanTypeMismatchArgumentSuperType',
'PhanTypeMismatchReturn',
'PhanTypeSuspiciousStringExpression',
'PhanUndeclaredFunctionInCallable',
'PhanUndeclaredMethod',
'PhanUnreferencedClosure',
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/CreateOrUpdateUserFromBuzzAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct(
/**
* Execute the job.
*
* @phan-suppress PhanTypeExpectedObjectPropAccessButGotNull,PhanTypeMismatchArgumentInternal
* @phan-suppress PhanTypeExpectedObjectPropAccessButGotNull
*/
public function handle(): void
{
Expand Down
2 changes: 0 additions & 2 deletions app/Nova/Actions/Payments/RecordCheckPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ static function (string $attribute, string $value, callable $fail) use ($payable

/**
* The note to add to the payment.
*
* @phan-suppress PhanTypeSuspiciousStringExpression
*/
protected static function note(ActionFields $fields): string
{
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Actions/Payments/RecordPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ abstract class RecordPayment extends Action
* @param \Illuminate\Support\Collection<int,\App\Models\Payable> $models
*
* @phan-suppress PhanUndeclaredConstantOfClass
* @phan-suppress PhanTypeSuspiciousStringExpression
* @phan-suppress PhanTypeMismatchProperty
*/
public function handle(ActionFields $fields, Collection $models)
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Actions/Payments/RefundOfflinePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class RefundOfflinePayment extends Action
* @param \Illuminate\Support\Collection<int,\App\Models\Payment> $models
*
* @phan-suppress PhanTypeMismatchPropertyProbablyReal
* @phan-suppress PhanTypeSuspiciousStringExpression
*/
public function handle(ActionFields $fields, Collection $models)
{
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Actions/Payments/RefundSquarePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class RefundSquarePayment extends Action
* @param \Illuminate\Support\Collection<int,\App\Models\Payment> $models
*
* @phan-suppress PhanTypeMismatchPropertyProbablyReal
* @phan-suppress PhanTypeSuspiciousStringExpression
* @phan-suppress PhanPossiblyFalseTypeArgument
*/
public function handle(ActionFields $fields, Collection $models)
Expand Down
7 changes: 7 additions & 0 deletions app/Traits/GetMorphClassStatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
*/
trait GetMorphClassStatic
{
/**
* Get the morph class string for this class.
*
* @return string
*
* @phan-suppress PhanPossiblyFalseTypeReturn
*/
public static function getMorphClassStatic(): string
{
return array_search(static::class, Relation::morphMap(), true);
Expand Down

0 comments on commit dc718ee

Please sign in to comment.