Improved php type hints #2918
Annotations
10 errors and 1 warning
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{acss_debit_payments?: string, affirm_payments?: string, afterpay_clearpay_payments?: string, alma_payments?: string, amazon_pay_payments?: string, au_becs_debit_payments?: string, automatic_indirect_tax?: string, bacs_debit_payments?: string, bancontact_payments?: string, bank_transfer_payments?: string, blik_payments?: string, boleto_payments?: string, card_issuing?: string, card_payments?: string, cartes_bancaires_payments?: string, cashapp_payments?: string, eps_payments?: string, fpx_payments?: string, gb_bank_transfer_payments?: string, giropay_payments?: string, gopay_payments?: string, grabpay_payments?: string, id_bank_transfer_payments?: string, id_bank_transfer_payments_bca?: string, ideal_payments?: string, india_international_payments?: string, jcb_payments?: string, jp_bank_transfer_payments?: string, kakao_pay_payments?: string, klarna_payments?: string, konbini_payments?: string, kr_card_payments?: string, legacy_payments?: string, link_payments?: string, mb_way_payments?: string, mobilepay_payments?: string, multibanco_payments?: string, mx_bank_transfer_payments?: string, naver_pay_payments?: string, oxxo_payments?: string, p24_payments?: string, payco_payments?: string, paynow_payments?: string, paypal_payments?: string, payto_payments?: string, promptpay_payments?: string, qris_payments?: string, rechnung_payments?: string, revolut_pay_payments?: string, samsung_pay_payments?: string, sepa_bank_transfer_payments?: string, sepa_debit_payments?: string, shopeepay_payments?: string, sofort_payments?: string, swish_payments?: string, tax_reporting_us_1099_k?: string, tax_reporting_us_1099_misc?: string, transfers?: string, treasury?: string, treasury_evolve?: string, treasury_fifth_third?: string, treasury_goldman_sachs?: string, twint_payments?: string, us_bank_account_ach_payments?: string, us_bank_transfer_payments?: string, zip_payments?: string}&\Stripe\StripeObject&\stdClass $capabilities): Unexpected token "&", expected variable at offset 4195
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{annual_revenue: null|object{amount: null|int, currency: null|string, fiscal_year_end: null|string}&\Stripe\StripeObject&\stdClass, estimated_worker_count: null|int, mcc: null|string, monthly_estimated_revenue?: object{amount: int, currency: string}&\Stripe\StripeObject&\stdClass, name: null|string, product_description?: null|string, support_address: null|object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject&\stdClass, support_email: null|string, support_phone: null|string, support_url: null|string, url: null|string}&\Stripe\StripeObject&\stdClass $business_profile Business information about the account.): Unexpected token "&", expected '}' at offset 1249
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{application?: object{loss_liable: bool, onboarding_owner: bool, pricing_controls: bool}&\Stripe\StripeObject&\stdClass, dashboard?: object{type: string}&\Stripe\StripeObject&\stdClass, fees?: object{payer: string}&\Stripe\StripeObject&\stdClass, is_controller?: bool, losses?: object{payments: string}&\Stripe\StripeObject&\stdClass, requirement_collection?: string, stripe_dashboard?: object{type: string}&\Stripe\StripeObject&\stdClass, type: string}&\Stripe\StripeObject&\stdClass $controller): Unexpected token "&", expected variable at offset 6118
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{bacs_debit_payments?: object{display_name: null|string, service_user_number: null|string}&\Stripe\StripeObject&\stdClass, bank_bca_onboarding?: object{account_holder_name?: string, business_account_number?: string}&\Stripe\StripeObject&\stdClass, branding: object{icon: null|string|\Stripe\File, logo: null|string|\Stripe\File, primary_color: null|string, secondary_color: null|string}&\Stripe\StripeObject&\stdClass, capital?: object{payout_destination?: \Stripe\StripeObject, payout_destination_selector?: \Stripe\StripeObject}&\Stripe\StripeObject&\stdClass, card_issuing?: object{tos_acceptance?: object{date: null|int, ip: null|string, user_agent?: string}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass, card_payments: object{decline_on?: object{avs_failure: bool, cvc_failure: bool}&\Stripe\StripeObject&\stdClass, statement_descriptor_prefix: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&\Stripe\StripeObject&\stdClass, dashboard: object{display_name: null|string, timezone: null|string}&\Stripe\StripeObject&\stdClass, invoices?: object{default_account_tax_ids: null|(string|\Stripe\TaxId)[]}&\Stripe\StripeObject&\stdClass, payments: object{statement_descriptor: null|string, statement_descriptor_kana: null|string, statement_descriptor_kanji: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&\Stripe\StripeObject&\stdClass, payouts?: object{debit_negative_balances: bool, schedule: object{delay_days: int, interval: string, monthly_anchor?: int, weekly_anchor?: string}&\Stripe\StripeObject&\stdClass, statement_descriptor: null|string}&\Stripe\StripeObject&\stdClass, sepa_debit_payments?: object{creditor_id?: string}&\Stripe\StripeObject&\stdClass, tax_forms?: object{consented_to_paperless_delivery: bool}&\Stripe\StripeObject&\stdClass, treasury?: object{tos_acceptance?: object{date: null|int, ip: null|string, user_agent?: string}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $settings Options for customizing how the account functions within Stripe.): Unexpected token "&", expected variable at offset 11939
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{charges: object{pause_requested: bool}&\Stripe\StripeObject&\stdClass, payouts: object{pause_requested: bool}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $risk_controls): Unexpected token "&", expected variable at offset 9817
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (null|object{payments_pricing: null|string}&\Stripe\StripeObject&\stdClass $groups The groups associated with the account.): Unexpected token "&", expected variable at offset 7934
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (object{address?: object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject&\stdClass, address_kana?: null|object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string, town: null|string}&\Stripe\StripeObject&\stdClass, address_kanji?: null|object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string, town: null|string}&\Stripe\StripeObject&\stdClass, directors_provided?: bool, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: null|string, name_kana?: null|string, name_kanji?: null|string, owners_provided?: bool, ownership_declaration?: null|object{date: null|int, ip: null|string, user_agent: null|string}&\Stripe\StripeObject&\stdClass, phone?: null|string, structure?: string, tax_id_provided?: bool, tax_id_registrar?: string, vat_id_provided?: bool, verification?: null|object{document: object{back: null|string|\Stripe\File, details: null|string, details_code: null|string, front: null|string|\Stripe\File}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $company): Unexpected token "&", expected '}' at offset 4690
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (object{alternatives: null|object{alternative_fields_due: string[], original_fields_due: string[]}&\Stripe\StripeObject&\stdClass[], current_deadline: null|int, currently_due: null|string[], disabled_reason: null|string, errors: null|object{code: string, reason: string, requirement: string}&\Stripe\StripeObject&\stdClass[], eventually_due: null|string[], past_due: null|string[], pending_verification: null|string[]}&\Stripe\StripeObject&\stdClass $future_requirements): Unexpected token "&", expected '}' at offset 7506
|
Run phpstan:
lib/Account.php#L46
PHPDoc tag @Property has invalid value (object{alternatives: null|object{alternative_fields_due: string[], original_fields_due: string[]}&\Stripe\StripeObject&\stdClass[], current_deadline: null|int, currently_due: null|string[], disabled_reason: null|string, errors: null|object{code: string, reason: string, requirement: string}&\Stripe\StripeObject&\stdClass[], eventually_due: null|string[], past_due: null|string[], pending_verification: null|string[]}&\Stripe\StripeObject&\stdClass $requirements): Unexpected token "&", expected '}' at offset 9285
|
Run phpstan:
lib/Account.php#L116
PHPDoc tag @param has invalid value (null|array{{}} $params): Unexpected token "{", expected type at offset 752
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading