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(ci): new php-cs-fixer and phpstan rules #105

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

Jean-Beru
Copy link
Contributor

@Jean-Beru Jean-Beru commented Sep 3, 2024

This PR fixes CI bugs due to php-cs-fixer and phpstan.

I commented out the manual fixes to differentiate them from the php-cs-fixer ones.

Comment on lines +45 to +46
'size' => $response->getContentLength(),
'fileName' => $response->getFileName(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a manual fix

@@ -63,7 +63,7 @@ public function testCallIsCorrectlyFormatted(): void

/* @see https://onlinephp.io/c/e8233 */
preg_match('#^multipart/form-data; boundary=(?P<boundary>.*)$#', $requestContentType, $matches);
$boundary = $matches['boundary'];
$boundary = $matches['boundary'] ?? '';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a manual fix

Comment on lines +35 to +36
/* @see https://onlinephp.io/c/c2606 */
if (1 === preg_match('#[^;]*;\sfilename="?(?P<fileName>[^"]*)"?#', $disposition, $matches)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a manual fix

@Neirda24 Neirda24 merged commit 51ea807 into sensiolabs:main Sep 7, 2024
8 checks passed
@Jean-Beru Jean-Beru deleted the fix-ci branch September 9, 2024 07:27
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