Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Error Message Return type of Stripe\StripeObject::offsetExists($k) #1716

Open
kiwis80 opened this issue Jun 20, 2024 · 1 comment
Open
Labels

Comments

@kiwis80
Copy link

kiwis80 commented Jun 20, 2024

Describe the bug

I've started receiving this error message in my logs. I'm unsure what it means or why I'm getting it.

Any ideas?

[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 202
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 212
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::offsetSet($k, $v) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 197
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 207
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 218
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\StripeObject::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php on line 424
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 44
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 57
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 34
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 51
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 24
[15-Jun-2024 11:09:45 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\CaseInsensitiveArray::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php on line 29
[15-Jun-2024 11:09:46 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Collection.php on line 119
[15-Jun-2024 11:09:46 Pacific/Auckland] PHP Deprecated: Return type of Stripe\Util\Set::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home2//payment-process/vendor/stripe/stripe-php/lib/Util/Set.php on line 40
[15-Jun-2024 11:09:48 Pacific/Auckland] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2//payment-process/vendor/stripe/stripe-php/lib/StripeObject.php:8) in /home2//payment-process/charge.php on line 107

To Reproduce

Found logs

Expected behavior

No error message?

Code snippets

No response

OS

windows

PHP version

8.2.18

Library version

7.47

API version

2020-08-07

Additional context

No response

@kiwis80 kiwis80 added the bug label Jun 20, 2024
@helenye-stripe
Copy link
Contributor

Hi @kiwis80! This was addressed in #1211 by adding the annotation described in the logs. Is it possible for you to try updating to a more recent version of our library? I believe 7.104.0 is the first version that contains this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants