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

array_key_exists() expects parameter 2 to be array, null given #54

Open
antonioreyna opened this issue Aug 21, 2021 · 1 comment
Open

Comments

@antonioreyna
Copy link

Intento llamar la propiedad payments del cargo y sale este error:

array_key_exists() expects parameter 2 to be array, null given

en este archivo:

/vendor/openpay/sdk/Data/OpenpayApiResourceBase.php in Illuminate\Foundation\Bootstrap\HandleExceptions::handleError at line 382

    public function __get($key) {
        if (property_exists($this, $key)) {
            return $this->$key;
        } else if (array_key_exists($key, $this->serializableData)) {
            return $this->serializableData[$key];
        } else if (array_key_exists($key, $this->derivedResources)) {
            return $this->derivedResources[$key];
@juliovazquez-openpay
Copy link
Collaborator

@antonioreyna

Hola Antonio.

Podrías darme un ejemplo más preciso en cómo se detona el error, ya que al hacer pruebas no puedo replicarlo.

Quedo al pendiente.

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

No branches or pull requests

2 participants