cwmiller / broadworks-connector

Simple library for connecting to BroadWorks OCI-P API
MIT License
8 stars 5 forks source link

Uncaught TypeError: Argument 1 passed to CWM\BroadWorksConnector\Ocip\Models\UserServiceIsAssignedRequest::setServiceName() #18

Closed TwinMist closed 5 years ago

TwinMist commented 6 years ago

PHP Fatal error: Uncaught TypeError: Argument 1 passed to CWM\BroadWorksConnector\Ocip\Models\UserServiceIsAssignedRequest::setServiceName() must be an instance of CWM\BroadWorksConnector\Ocip\Models\UserService, string given, called in and defined in /vendor/cwm/broadworks-connector/src/Ocip/Models/UserServiceIsAssignedRequest.php:73 is this correct? same with GroupServiceIsAssignedRequest public function setServiceName(\CWM\BroadWorksConnector\Ocip\Models\UserService $serviceName) { $this->serviceName = $serviceName; return $this; }

TwinMist commented 5 years ago

Any update on this as looks like it is in a lot of the code,

cwmiller commented 5 years ago

UserService is correct if you're using the latest code in master instead of the stable release. UserService is an enum, a feature that's coming in the next release.

I recommend sticking with the stable release for now.

TwinMist commented 5 years ago

many thanks, how do you install stable release with composer?

cwmiller commented 5 years ago

composer require cwm/broadworks-connector:^2

TwinMist commented 5 years ago

Many thanks, now working using the stable release