Conversation
|
Also is there any need for providing composer.json file as part of this PR ? |
| 'contact_id' => (string) $this->contact_id, | ||
| 'name' => (string) $this->name, | ||
| 'email' => (string) $this->email, | ||
| 'phone' => $this->phone, |
There was a problem hiding this comment.
You can put (string) here too.
| * | ||
| * @return array|\ArrayObject|null | ||
| */ | ||
| public function getById($contactId) |
There was a problem hiding this comment.
Here (and in all code generaly) you can use PHP7 return type.
there will be recommended to return ContactUs entity.
In that case you should check if result is null and throw exception if it is.
Mapper will return ContactUs by default.
We are planning to add return types in all code :)
|
Sry for the delay I hope that next time I will be faster. What you can improve:
Everything else is perfect :) |
|
Thanks for feedback, I'll send PR soon :) |
I have problem for sending POST onto Web Action.
I need to provide form filtering/error preview for ContactUsAction (Created view script, form, routes).
If someone can see where i came up and provide some hints.
TODO: