Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for zero IDs; notifications are only NULL #80

Closed
wants to merge 3 commits into from

Conversation

bradjones1
Copy link
Contributor

If a client sends a request with ID -0- (zero) this is converted into a response with ID null, as the check for the presence of an ID in the ResponseCreator is not sufficiently typesafe. The perils of working in PHP, I guess!

I was getting errors on the client side like Received a surprise response from the server with id null after sending such a request ID.

@yoanm
Copy link
Owner

yoanm commented Jul 2, 2021

LGTM 👍 , just missing an UT case to cover the issue.

FYI, PHP is not the issue here, if (0) with javascript produces the exact same thing actually. It was just a wrong check.

@codecov
Copy link

codecov bot commented Apr 8, 2023

Codecov Report

Merging #80 (6ec241c) into master (24c0a72) will not change coverage.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              master       #80   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       170       170           
===========================================
  Files             28        28           
  Lines            454       454           
===========================================
  Hits             454       454           
Flag Coverage Δ
functional-tests 99.55% <100.00%> (ø)
php-8.2 100.00% <100.00%> (ø)
unit-tests 19.82% <0.00%> (ø)
Impacted Files Coverage Δ
src/App/Creator/ResponseCreator.php 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@yoanm yoanm linked an issue May 6, 2023 that may be closed by this pull request
@yoanm
Copy link
Owner

yoanm commented May 6, 2023

superseded by #93

@yoanm yoanm closed this May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for zero IDs; notifications are only NULL
2 participants