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

Update PHPCS #1599

Merged
merged 10 commits into from
Oct 24, 2023
Merged

Update PHPCS #1599

merged 10 commits into from
Oct 24, 2023

Conversation

cleptric
Copy link
Member

No description provided.

@cleptric cleptric changed the base branch from master to 4.x October 24, 2023 08:59
@cleptric cleptric self-assigned this Oct 24, 2023
@cleptric cleptric force-pushed the update-github-actions branch from c2967a3 to 3ea33c9 Compare October 24, 2023 09:01
@cleptric cleptric changed the title Update GitHub actions Update PHPCS Oct 24, 2023
@cleptric cleptric force-pushed the update-github-actions branch from 9f44aed to 36a1dee Compare October 24, 2023 10:08
'yoda_style' => true,
'self_accessor' => false,
'phpdoc_no_useless_inheritdoc' => false,
'modernize_strpos' => false,
Copy link
Member Author

Choose a reason for hiding this comment

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

str_contains is only available from PHP 8.0

@@ -10,9 +10,16 @@
'imports_order' => ['class', 'function', 'const'],
],
'declare_strict_types' => true,
'get_class_to_class_keyword' => false,
Copy link
Member Author

Choose a reason for hiding this comment

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

PHP Fatal error: Cannot use ::class with dynamic class name in PHP 7.4 and below

'phpdoc_no_useless_inheritdoc' => false,
'modernize_strpos' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
Copy link
Member Author

Choose a reason for hiding this comment

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

This would remove way too many ? types.

'use_nullable_type_declaration' => true,
],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
Copy link
Member Author

Choose a reason for hiding this comment

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

This would remove all @mixed annotations, which makes phpstan unhappy.

@cleptric cleptric force-pushed the update-github-actions branch from 519dcf5 to 4c57972 Compare October 24, 2023 10:22
# Conflicts:
#	src/Options.php
#	tests/Integration/IgnoreErrorsIntegrationTest.php
@cleptric cleptric added this to the 4.0 milestone Oct 24, 2023
@cleptric cleptric marked this pull request as ready for review October 24, 2023 13:33
@cleptric cleptric requested a review from stayallive October 24, 2023 13:33
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

🥳

@cleptric cleptric merged commit f8b64d3 into 4.x Oct 24, 2023
33 checks passed
@cleptric cleptric deleted the update-github-actions branch October 24, 2023 14:03
stayallive added a commit that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants