Skip to content

updated get method to public - #25

Merged
SergkeiM merged 1 commit into
SergkeiM:masterfrom
necenzurat:patch-2
Aug 26, 2024
Merged

SergkeiM merged 1 commit into
SergkeiM:masterfrom
necenzurat:patch-2

Conversation

@necenzurat

Copy link
Copy Markdown
Contributor

Fixes
Access type for interface method Cloudflare\Contracts\ResponseInterface::get() must be public error

@SergkeiM

Copy link
Copy Markdown
Owner

Hi @necenzurat

Thanks for the PR, but I wanted to keep this method protected, because is something only for Response ( get items from array using dots)

Where this error is being thrown?

@necenzurat

necenzurat commented Aug 24, 2024 via email

Copy link
Copy Markdown
Contributor Author

@SergkeiM

Copy link
Copy Markdown
Owner

@necenzurat can you share the code you used?

@necenzurat

Copy link
Copy Markdown
Contributor Author

This part

use Cloudflare\Client;

$client = new Client('CLOUDFLARE_TOKEN');

$response = $client->accounts()->list();

$results = $response->json();

latest laravel and php 8.2

@necenzurat necenzurat closed this Aug 26, 2024
@SergkeiM SergkeiM reopened this Aug 26, 2024
@SergkeiM
SergkeiM merged commit 87ca355 into SergkeiM:master Aug 26, 2024
@SergkeiM SergkeiM added the bug Something isn't working label Aug 26, 2024
@SergkeiM

Copy link
Copy Markdown
Owner

@necenzurat thank you.

This is awkard that I put protected inside interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants