Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Using curly brackets to access array elements is deprecated in PHP 7.4 #1860

Closed
tylermarien opened this issue Nov 29, 2019 · 1 comment
Closed

Comments

@tylermarien
Copy link

Summary

When using the Payment provider, it throws the following exception in PHP 7.4.

Array and string offset access syntax with curly braces is deprecated

Versions

PHP - 7.4.0
fzaninotto/faker - 1.9.0

Self-enclosed code snippet for reproduction

$faker = \Faker\Factory::create();
$faker->creditCardNumber('Visa');

Expected output

Expect to get a valid Visa card number.

Actual output

PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /var/www/html/vendor/fzaninotto/faker/src/Faker/Calculator/Luhn.php on line 27
@bolechen
Copy link

it already fix at #1843

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

No branches or pull requests

3 participants