Skip to content

Unable to access SenderIds model #2

Description

@martingrega

I'm unable to access SenderIds model because in TextmagicRestClient.php you are converting classname to lowercase, but classnames of models are kebabcased.

    public function __get($name) {
        $name = strtolower($name); // causing problems with kebabcase named classes
        if (!isset($this->$name)) {
            $className = __NAMESPACE__ . '\\Models\\' . ucfirst($name);
            $this->$name = new $className($this);
        }
        return $this->$name;
    }

I propose to remove strtolower() call, I think it shouldn't affect other behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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