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

CS-Fixer: Enable nullable_type_declaration_for_default_null_value #43

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

OskarStark
Copy link
Contributor

No description provided.

@@ -63,7 +63,7 @@ public function buildApiUrl()
return Curl::API_BASE_URL.'/'.Curl::API_VERSION.'/groups/'.$this->group->getKey().'/'.$this->action.'.json?token='.$this->group->getApplication()->getToken();
}

public function buildCurlPostFields(Recipient $recipient = null): array
public function buildCurlPostFields(?Recipient $recipient = null): array
{
$curlPostFields = [
'token' => $this->group->getApplication()->getToken(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just spotted, that in line 78, $recipient can be null, right?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, can be null

@slunak
Copy link
Owner

slunak commented Aug 23, 2024

This is the last PR for cs fixer? I wonder, is it possible to add a check to github actions to detect that cs fixer was not run and make sure it is run? Is it a good practice? I may be wrong, but depending on PHP version changes cs fixer may apply different changes?

@OskarStark
Copy link
Contributor Author

I will create one afterwards

@OskarStark
Copy link
Contributor Author

You can merge this first please

@slunak
Copy link
Owner

slunak commented Aug 24, 2024

Sure, thanks!

@slunak slunak merged commit 97522d1 into slunak:master Aug 24, 2024
6 checks passed
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.

2 participants