-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
src/NodeJS/Server.php
Outdated
*/ | ||
public function setOptions($options) | ||
{ | ||
if (!is_array($options)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a typehint instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/NodeJS/Server.php
Outdated
@@ -46,6 +46,11 @@ | |||
protected $threshold; | |||
|
|||
/** | |||
* @var array | |||
*/ | |||
protected $options; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use private visibility for the new property (as it has both a getter and a setter which are public, there is no benefit making this accessible through inheritance, and protected stuff makes it harder to handle backward compatibility)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof I tried to follow what's already there and all the other properties are protected while having setters and getters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@berliner , please make this change. I guess that's last thing before this PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aik099 Done, though I still feel that this doesn't belong into this PR.
Merging, thanks @berliner . |
This is a follow up of #154.
This PR allows to specify zombie options as an array argument to the server constructor.
I have applied more or less the same logic as for the threshold argument.
Tests have been updated/added too.
I didn't update the README, but instead would issue a PR against the docs repo once this PR here has been approved.
The associated PR for Behat/MinkExtension is Behat/MinkExtension#284