Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

invalid string comparation #2

Open
arturwwl opened this issue Feb 23, 2020 · 0 comments
Open

invalid string comparation #2

arturwwl opened this issue Feb 23, 2020 · 0 comments

Comments

@arturwwl
Copy link

przelewy24-bundle/Exception/Exception.php

public static function getExceptionsFromString($string, $type)
    {
        $array = \explode('&', $string);
        if ($array[0] == 'error=0' || $string = "") {
            return;
        }

        throw new \Exception($type . ': ' . $string);
    }

String in exception always will be empty. Should be

public static function getExceptionsFromString($string, $type)
    {
        $array = \explode('&', $string);
        if ($array[0] == 'error=0' || $string == "") {
            return;
        }

        throw new \Exception($type . ': ' . $string);
    }
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

1 participant