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

Fix PHPStan issues on PHP8.2 #445

Merged
merged 14 commits into from
Aug 7, 2023
Merged

Fix PHPStan issues on PHP8.2 #445

merged 14 commits into from
Aug 7, 2023

Conversation

kryswoj
Copy link
Contributor

@kryswoj kryswoj commented Aug 4, 2023

No description provided.

@jakubmikita
Copy link
Member

Task linked: CU-862k7r9m3 Fix PHPStan issues on PHP8.2

@kryswoj kryswoj changed the base branch from develop to major August 4, 2023 09:08
@kryswoj kryswoj changed the title Feature/cu 862k7r9m3 Fix PHPStan issues on PHP8.2 Aug 4, 2023
@@ -215,6 +215,10 @@ public function importRequest()
$_FILES[0]['tmp_name'],
'rb'
);

if ( !$file ) wp_send_json_error('Can\'t read the file.');
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if ( !$file ) wp_send_json_error('Can\'t read the file.');
if (! $file) {
wp_send_json_error("Can't read the file.");
}

Always use braces and pay attention to the formatting

@jakubmikita jakubmikita merged commit d36cd97 into major Aug 7, 2023
10 checks passed
@jakubmikita jakubmikita deleted the feature/CU-862k7r9m3 branch August 7, 2023 09:50
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