ArrayAccess implementation depreciation notice
Closed this issue · 1 comments
ouail commented
Environment:
- PHP Version: 8.2
- Vanilo Version: 3.8.1
- Fresh Laravel 10 install
Issue:
I encountered a DEPRECATED warning when using the Vanilo\Checkout\CheckoutManager
class in my PHP application. The specific warning message is:
DEPRECATED Return type of Vanilo\Checkout\CheckoutManager::offsetExists(mixed $offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/CheckoutManager.php on line 197.
DEPRECATED Return type of Vanilo\Checkout\CheckoutManager::offsetGet(mixed $offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/CheckoutManager.php on line 202.
DEPRECATED Return type of Vanilo\Checkout\CheckoutManager::offsetSet(mixed $offset, mixed $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 vendor/vanilo/framework/src/Checkout/CheckoutManager.php on line 207.
DEPRECATED Return type of Vanilo\Checkout\CheckoutManager::offsetUnset(mixed $offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/CheckoutManager.php on line 212.
DEPRECATED Return type of Vanilo\Checkout\Drivers\BaseCheckoutStore::offsetGet(mixed $offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/Drivers/BaseCheckoutStore.php on line 200.
DEPRECATED Return type of Vanilo\Checkout\Drivers\BaseCheckoutStore::offsetSet(mixed $offset, mixed $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 vendor/vanilo/framework/src/Checkout/Drivers/BaseCheckoutStore.php on line 191.
DEPRECATED Return type of Vanilo\Checkout\Drivers\RequestStore::offsetExists(mixed $offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/Drivers/RequestStore.php on line 157.
DEPRECATED Return type of Vanilo\Checkout\Drivers\RequestStore::offsetUnset(mixed $offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Checkout/Drivers/RequestStore.php on line 162.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 139.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::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 vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 100.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::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 vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 105.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::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 vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 110.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::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 vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 119.
DEPRECATED Return type of Vanilo\Adjustments\Support\RelationAdjustmentCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/vanilo/framework/src/Adjustments/Support/RelationAdjustmentCollection.php on line 124.
fulopattila122 commented
Thank you for the report the fix has been released with v3.8.2. Please upgrade and the deprecation notices will disappear.