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

Problem with setMarketProjection #26

Open
marncz opened this issue Nov 15, 2016 · 1 comment
Open

Problem with setMarketProjection #26

marncz opened this issue Nov 15, 2016 · 1 comment

Comments

@marncz
Copy link

marncz commented Nov 15, 2016

Hello there:

Even when using original code I get this error when trying to get some data:

Catchable fatal error: Argument 1 passed to Betfair\Model\Param::setMarketProjection() must be an instance of Betfair\Model\MarketProjection, null given

Can someone help me? Tried to do:

->setMarketProjection( new MarketProjection\Betfair\Model\MarketProjection::COMPETITION )

Without any luck

@filipemansano
Copy link

/** * @param MarketProjection $marketProjection * @return $this */ public function setMarketProjection(MarketProjection $marketProjection) { $this->marketProjection = $marketProjection; return $this; }

This function need a instance of MarketProjection, but the param need a list of MarketProjection

doc
http://docs.developer.betfair.com/docs/display/1smk3cen4v3lu3yomq5qye0ni/listMarketCatalogue

I think it was a small mistake to write this excerpt, just remove the need for the parameter type, or use the function 'addMarketProjection'

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