guzzle / guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the correct type of Parameter static option

Konafets opened this issue · comments

The service description knows a static option. From the header doc:

static: (bool) Set to true to specify that the parameter value cannot be changed from the default.

However, in the UnitTests the static option gets a string static! assigned.

Proposal: If static is boolean, we should change the test and also change the method name from getStatic() to isStatic().

The service description definition clearly defines static as type of boolean.