laminas / laminas-json-server

Laminas Json-Server is a JSON-RPC server implementation.
https://docs.laminas.dev/laminas-json-server/
BSD 3-Clause "New" or "Revised" License
17 stars 6 forks source link

QA: strict types #7

Closed arueckauer closed 4 years ago

arueckauer commented 4 years ago
Q A
Documentation no
Bugfix no
BC Break no
New Feature no
RFC no
QA yes

Description

This PR provides strict typing as described in #2 .

arueckauer commented 4 years ago

👋🏻 and thanks for the review. That's great input! Most comments are fine, for a few I had a question.

Since this PR is about adding strict typing to the component. I would like to address changes not related to it separately. Would you be okay with me opening issues for the following list? They would be addressed in dev-4.0 (master respectively for bugfixes).

EDIT: Added JSON-RPC SMD: Use argument type declarations as param types (deprecating type hints in PHPDocs) to list of changes.

michalbundyra commented 4 years ago

@arueckauer Maybe add these as checkboxes to #2 (edit the description) and then provide separate PRs to dev-4.0. What do you think?

EDIT:

Bugfix Smd::getDescription() returns $description instead of self

PR to master please.

arueckauer commented 4 years ago

Agreed, I added the list.

There is one unresolved conversation about initial value of Smd\Service::$name. Would love your input on that.

michalbundyra commented 4 years ago

@arueckauer Also for strict types we should use assertSame instead of assertEquals (the same as === instead of ==).