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

add rule 'declare_strict_types' => true #20

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

sztan
Copy link
Contributor

@sztan sztan commented Apr 21, 2022

Adding this rule via cs-fixer following a common decision (internal RFC).
This will prevent some oversights and help us to use php strict typing.

@sztan sztan requested a review from a team as a code owner April 21, 2022 05:44
Copy link

@FloFrad FloFrad left a comment

Choose a reason for hiding this comment

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

Could you add a little description? 😉 🙏

@Siwayll Siwayll requested a review from a team April 21, 2022 12:35
Copy link

@Melfo01 Melfo01 left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Contributor

@valentin-claras valentin-claras left a comment

Choose a reason for hiding this comment

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

You should only change the BedrockStreaming configuration, the other one are deprecated and this should encourage people to move on and update their project.

@Oliboy50
Copy link
Member

Oliboy50 commented Apr 21, 2022

@valentin-claras he did not change the other configs, he only added "declare(strict_types=1)" to these files (maybe because he simply ran php-cs-fixer in this project)

it looks good

@sztan
Copy link
Contributor Author

sztan commented Apr 21, 2022

@valentin-claras he did not change the other configs, he only added "declare(strict_types=1)" to these files (maybe because he simply ran php-cs-fixer in this project)

it looks good

That's exactly what I did, but I understand there's no real point in updating deprecated files indeed ... 🤷🏼

@sztan sztan force-pushed the feat/add-declare_strict_types-rule branch from 56ff3db to e254b0b Compare April 25, 2022 14:38
@sztan sztan merged commit 996be53 into master Apr 25, 2022
@FloFrad FloFrad deleted the feat/add-declare_strict_types-rule branch April 25, 2022 15:00
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.

6 participants