Merge pull request #938 from woocommerce/PCP-946-multiple-php-warnings-php-8

Multiple PHP warnings (PHP8)
This commit is contained in:
Emili Castells 2022-11-02 16:44:36 +01:00 committed by GitHub
commit 0c756c0667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 19 deletions

View file

@ -52,7 +52,7 @@ class PaymentTokenRepositoryTest extends TestCase
{
$id = 1;
$source = new \stdClass();
$paymentToken = new PaymentToken('foo', 'PAYMENT_METHOD_TOKEN', $source);
$paymentToken = new PaymentToken('foo', $source, 'PAYMENT_METHOD_TOKEN');
when('get_user_meta')->justReturn([]);
$this->endpoint->shouldReceive('for_user')