Skip to content

Commit

Permalink
fixing stan linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vifer committed Feb 14, 2024
1 parent fa07ac7 commit 3146dc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ parameters:
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
ignoreErrors:
- '#Method .+ should return .+ but returns Paddle\\SDK\\Entities\\Entity.#'
- '#Method .+ should return .+ but returns Paddle\\SDK\\Entities\\Entity.#'
- '#Constant .+ is unused.#'
- '#Call to an undefined static method Paddle\\SDK\\PaddleEnum::Undefined\(\).#'
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@

namespace Paddle\SDK\Entities\Subscription;

use Paddle\SDK\PaddleEnum;

/**
* @method static SubscriptionProrationBillingMode ProratedImmediately()
* @method static SubscriptionProrationBillingMode ProratedNextBillingPeriod()
* @method static SubscriptionProrationBillingMode FullImmediately()
* @method static SubscriptionProrationBillingMode FullNextBillingPeriod()
* @method static SubscriptionProrationBillingMode DoNotBill()
*/
class SubscriptionProrationBillingMode extends \MyCLabs\Enum\Enum
class SubscriptionProrationBillingMode extends PaddleEnum
{
private const ProratedImmediately = 'prorated_immediately';
private const ProratedNextBillingPeriod = 'prorated_next_billing_period';
Expand Down
4 changes: 3 additions & 1 deletion src/Entities/Subscription/SubscriptionResultAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

namespace Paddle\SDK\Entities\Subscription;

use Paddle\SDK\PaddleEnum;

/**
* @method static SubscriptionResultAction Credit()
* @method static SubscriptionResultAction Charge()
*/
class SubscriptionResultAction extends \MyCLabs\Enum\Enum
class SubscriptionResultAction extends PaddleEnum
{
private const Credit = 'credit';
private const Charge = 'charge';
Expand Down

0 comments on commit 3146dc7

Please sign in to comment.