Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use integer type instead of int & boolean instead of bool #14529

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

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

ybenhssaien
Copy link
Contributor

@ybenhssaien ybenhssaien commented Nov 11, 2020

Uses the same type hint int already used in the optimizations config

Update

  • Replace int by integer
  • Replace bool by boolean

@javiereguiluz
Copy link
Member

javiereguiluz commented Nov 12, 2020

@ybenhssaien thanks for this contribution! However, the fix should be the opposite. We use **type**: integer everywhere, so we should update the occurrences of **type**: int Could you please update this PR to do that changes? Thanks!

@OskarStark
Copy link
Contributor

@javiereguiluz I created a new rule for this case
OskarStark/doctor-rst#811

@OskarStark
Copy link
Contributor

OskarStark commented Nov 12, 2020

@ybenhssaien would you like to fix **type**: bool to **type**: boolean too?

You can see what needs to be fixed for 4.4 in https://github.com/symfony/symfony-docs/pull/14536/checks?check_run_id=1389913297

@ybenhssaien
Copy link
Contributor Author

Done for twig.rst I will do it for th rest of pages .. in progress

@ybenhssaien ybenhssaien changed the title Use int type instead integer Use integer type instead of int & boolean instead of bool Nov 12, 2020
@ybenhssaien
Copy link
Contributor Author

@OskarStark done

@OskarStark
Copy link
Contributor

Thank you Youssef.

OskarStark added a commit that referenced this pull request Nov 12, 2020
…l (ybenhssaien)

This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

Use integer type instead of int & boolean instead of bool

Uses the same type hint `int` already used in the `optimizations` config

# Update
- [x] Replace `int` by `integer`
- [x] Replace `bool` by `boolean`

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `5.x` for features of unreleased versions).

-->

Commits
-------

120290d Replace bool by boolean
fc22075 Use integer typehint instead int
2c0cad0 Use int type instead integer
@OskarStark OskarStark merged commit 85ff85e into symfony:5.1 Nov 12, 2020
OskarStark added a commit that referenced this pull request Nov 12, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

Enhancement: Add new rule "string_replacement"

❗ blocked by #14529

Commits
-------

7b5bb01 Enhancement: Add new rule "string_replacement"
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.

5 participants