Skip to content

Error request nothing works php 8.0 #262

@avatec

Description

@avatec

Hi,

May someone help ? I'm using php 8.0 on docker alpine version. Composer includes:

"league/omnipay": "^3.2",
"omnipay/paypal": "^3.0"

When i run my code i see this typeerror message:
Symfony\Component\HttpFoundation\Request::createRequestFromFactory(): Argument #2 ($request) must be of type array, null given, called in /var/www/html/vendor/symfony/http-foundation/Request.php on line 306

Heres how i run code:
$gateway = Omnipay::create('PayPal_Rest');
$gateway->setClientId( $this->config['paypal_client_id'] );
$gateway->setSecret( $this->config['paypal_secret'] );
$gateway->setTestMode( (!empty( $this->config['paypal_testmode']) ? true : false) );

Errors show on Omnipay::create

the same code works ok on server with php 7.2 so i was wondering if i made some mistake here - and i need to include httpclient or something. Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions