8000 [Console] [5.0] Add all type-hint by Simperfit · Pull Request #32318 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] [5.0] Add all type-hint #32318

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
Jul 8, 2019

Conversation

Simperfit
Copy link
Contributor
Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets Contributo to #32179
License MIT
Doc PR not needed

Add all type-hint to console component whenever it's possible

@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch from c11267f to d7a4b96 Compare July 2, 2019 08:28
@chalasr chalasr added this to the 5.0 milestone Jul 2, 2019
@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch from d7a4b96 to 72c85c5 Compare July 3, 2019 05:25
@derrabus derrabus mentioned this pull request Jul 3, 2019
57 tasks
@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch from 72c85c5 to e9a0657 Compare July 4, 2019 16:18
Copy link
Member
@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

some comments

@Simperfit
Copy link
Contributor Author

Status: Needs Review

@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch 2 times, most recently from c16ae88 to 9c8d6df Compare July 8, 2019 05:59
@Simperfit
Copy link
Contributor Author

Status: Needs Review

@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch from 9c8d6df to 493fd65 Compare July 8, 2019 09:14
@Simperfit
Copy link
Contributor Author

Status: Needs Review

@Simperfit Simperfit force-pushed the feature/add-type-hint-to-console branch from 493fd65 to 26624ed Compare July 8, 2019 09:15
@fabpot
Copy link
Member
fabpot commented Jul 8, 2019

Thank you @Simperfit.

@fabpot fabpot merged commit 26624ed into symfony:master Jul 8, 2019
fabpot added a commit that referenced this pull request Jul 8, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Console] [5.0] Add all type-hint

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | Contributo to #32179  <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | not needed <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Add all type-hint to console component whenever it's possible

Commits
-------

26624ed [Console] [5.0] Add all type-hint
nicolas-grekas added a commit that referenced this pull request Aug 8, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Console] add missing type hints

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | part of #32179
| License       | MIT
| Doc PR        |

Fix missing types from #32318

Commits
-------

180c497 [Console] add missing type hints
derrabus added a commit that referenced this pull request Jul 5, 2021
…uestion by co… (TomasVotruba)

This PR was merged into the 5.2 branch.

Discussion
----------

[Console] SymfonyStyle - add string type to confirm() $question by co…

PR retargeted from Symfony 5.4: #41983

Inspired by & follow up to #41946 by `@nicolas`-grekas

<br>

This type is always string, see contract https://github.com/symfony/symfony/blob/5010ebdad90e9e0889e6a66ff9ad7b290bd00bae/src/Symfony/Component/Console/Style/StyleInterface.php#L102

Also `ConfirmationQuestion` requires `string` strict type bellow

Probably forgotten during adding types everywhere in  #32318

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

Commits
-------

d0c337d [Console] SymfonyStyle - add string type to confirm() $question by contract
symfony-splitter pushed a commit to symfony/console that referenced this pull request Jul 5, 2021
…uestion by co… (TomasVotruba)

This PR was merged into the 5.2 branch.

Discussion
----------

[Console] SymfonyStyle - add string type to confirm() $question by co…

PR retargeted from Symfony 5.4: symfony/symfony#41983

Inspired by & follow up to symfony/symfony#41946 by `@nicolas`-grekas

<br>

This type is always string, see contract https://github.com/symfony/symfony/blob/5010ebdad90e9e0889e6a66ff9ad7b290bd00bae/src/Symfony/Component/Console/Style/StyleInterface.php#L102

Also `ConfirmationQuestion` requires `string` strict type bellow

Probably forgotten during adding types everywhere in  symfony/symfony#32318

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

Commits
-------

d0c337d524 [Console] SymfonyStyle - add string type to confirm() $question by contract
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.

7 participants
0