Giter Club home page Giter Club logo

Comments (5)

mootrichard avatar mootrichard commented on June 12, 2024

So, with the way that the wrapper is setup, Shippo_Address isn't a method of the class Shippo. Shippo is an abstract class that is just used for setting and retrieving the API key, API version, and a few other API specific details.

So the way of calling that method from the Shippo namespace for the Shippo_Address class should be formed as Shippo\Shippo_Address::create($param);

This should look into the Shippo namespace for a class named Shippo_Address for the create() method.

I hope that clears things up, but if I am missing something here, please let me know.

from shippo-php-client.

Nacoma avatar Nacoma commented on June 12, 2024

I'm not sure what you're getting at in your first paragraph. The problem is that the Object class needs to use the fully qualified domain name when trying to create a new instance.

It is trying to instantiate \Shippi_Address and should be instantiating \Shippo\Shippo_Address.

from shippo-php-client.

mootrichard avatar mootrichard commented on June 12, 2024

So, admittedly I am not as well versed in PHP, but the issue appears to be a result of how namespacing was done here (along the lines of what you mentioned with missing fully qualified namespaces).

We rolled back the changes and as of #48 should be resolved.

from shippo-php-client.

Nacoma avatar Nacoma commented on June 12, 2024

Do you guys accept PRs?

from shippo-php-client.

mootrichard avatar mootrichard commented on June 12, 2024

We most certainly do! If you want to contribute, feel free to fork the repo and create some proposed changes and submit them as a PR. We'll review it and provide feedback, and should the changes look good, we'll merging them into the repo.

from shippo-php-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.