8000 Add types to constructors and private/final/internal methods (Batch I) by derrabus · Pull Request #33519 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add types to constructors and private/final/internal methods (Batch I) #33519

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
Sep 27, 2019

Conversation

derrabus
Copy link
Member
@derrabus derrabus commented Sep 9, 2019
Q A
Branch? 4.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32179, #33228
License MIT
Doc PR N/A

As promised, now a larger batch with the following components:

  • Asset
  • BrowserKit
  • Config
  • Console
  • CssSelector
  • Debug
  • DomCrawler
  • DotEnv
  • ErrorHandler
  • ErrorRenderer
  • ExpressionLanguage
  • Filesystem
  • Finder

@nicolas-grekas nicolas-grekas added this to the next milestone Sep 9, 2019
@nicolas-grekas
Copy link
Member

Do we really want to add types to Tests? I'm anticipating hours on merge conflicts here. On non-test classes, it's worth it, but on tests, I'd prefer doing anything else of my future contrib time...

@stof
Copy link
Member
stof commented Sep 10, 2019

I agree with @nicolas-grekas here.

@derrabus
Copy link
Member Author

Do we really want to add types to Tests?

I find them helpful for understanding the tests.

I'm anticipating hours on merge conflicts here. On non-test classes, it's worth it, but on tests, I'd prefer doing anything else of my future contrib time...

I understand. Suggestion: I‘m going to remove changes I‘ve made to test case classes that also exist on the 3.4 branch. We can hold them back until 3.4 is EOL.

@nicolas-grekas
Copy link
Member

I‘m going to remove changes I‘ve made to test case classes that also exist on the 3.4 branch. We can hold them back until 3.4 is EOL.

that'd work for me (but if it's too tedious, you can surrender :)

@nicolas-grekas
Copy link
Member

Status: needs work

@derrabus derrabus force-pushed the improvement/non-breaking-types branch 2 times, most recently from 59a58b1 to 6d92236 Compare September 25, 2019 09:35
@derrabus
Copy link
Member Author

Changes to tests have been moved into a separate branch: https://github.com/derrabus/symfony/tree/improvement/typed-tests

I've kept the changes to the Error* components though because those components are new and thus shouldn't cause merge conflicts.

@derrabus
Copy link
Member Author

Status: Needs Review

8000

@fabpot fabpot force-pushed the improvement/non-breaking-types branch from 6d92236 to 4039b95 Compare September 27, 2019 05:43
@fabpot
Copy link
Member
fabpot commented Sep 27, 2019

Thank you @derrabus.

@fabpot fabpot closed this in b1f6d0d Sep 27, 2019
@fabpot fabpot merged commit 4039b95 into symfony:4.4 Sep 27, 2019
@derrabus derrabus deleted the improvement/non-breaking-types branch September 27, 2019 09:36
Tobion added a commit that referenced this pull request Oct 3, 2019
…hods (Batch II) (derrabus)

This PR was squashed before being merged into the 4.4 branch (closes #33709).

Discussion
----------

Add types to constructors and private/final/internal methods (Batch II)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #32179, #33228
| License       | MIT
| Doc PR        | N/A

Followup to #33519, this time with:
* Form
* HttpClient
* HttpKernel
* intl
* Ldap
* Ldap
* Lock
* Messenger
* Processor
* PropertyInfo
* Routing
* Security
* Serializer
* Stopwatch
* Translation

Commits
-------

9378eb4 Add types to constructors and private/final/internal methods (Batch II)
@nicolas-grekas nicolas-grekas removed this from the next milestone Oct 27, 2019
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Oct 27, 2019
hultberg pushed a commit to hultberg/symfony that referenced this pull request Sep 17, 2021
…nal methods (Batch II) (derrabus)

This PR was squashed before being merged into the 4.4 branch (closes symfony#33709).

Discussion
----------

Add types to constructors and private/final/internal methods (Batch II)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | symfony#32179, symfony#33228
| License       | MIT
| Doc PR        | N/A

Followup to symfony#33519, this time with:
* Form
* HttpClient
* HttpKernel
* intl
* Ldap
* Ldap
* Lock
* Messenger
* Processor
* PropertyInfo
* Routing
* Security
* Serializer
* Stopwatch
* Translation

Commits
-------

9378eb4 Add types to constructors and private/final/internal methods (Batch II)
PhilETaylor pushed a commit to PhilETaylor/symfony that referenced this pull request Sep 6, 2023
…nal methods (Batch I) (derrabus)

This PR was squashed before being merged into the 4.4 branch (closes symfony#33519).

Discussion
----------

Add types to constructors and private/final/internal methods (Batch I)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony#32179, symfony#33228
| License       | MIT
| Doc PR        | N/A

As promised, now a larger batch with the following components:
* Asset
* BrowserKit
* Config
* Console
* ~~CssSelector~~
* Debug
* ~~DomCrawler~~
* DotEnv
* ErrorHandler
* ErrorRenderer
* ExpressionLanguage
* ~~Filesystem~~
* ~~Finder~~

Commits
-------

4039b95 Add types to constructors and private/final/internal methods (Batch I)
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.

6 participants
0