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

Skip to content

[Hack Day] Issue for newcomers (1) #18088

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

Closed
javiereguiluz opened this issue Mar 10, 2016 · 0 comments
Closed

[Hack Day] Issue for newcomers (1) #18088

javiereguiluz opened this issue Mar 10, 2016 · 0 comments
Labels

Comments

@javiereguiluz
Copy link
Member

NOTE this issue has been prepared for the Virtual Symfony Hack Day which will take place on March 12th. Please, don't create a pull request for this issue before the Hack Day.


Introduction

This issue is exclusively for developers who have never contributed to Symfony. It's very easy to solve, so you just need to follow the contribution process to get it merged. Ryan Weaver (@weaverryan) will host a live video tutorial about this contribution process during the Virtual Hack Day. Meanwhile, you can read the Symfony Contribution Guide.

The problem to solve

  1. In the Symfony 2.3 branch, locate the file src/Symfony/Component/HttpKernel/Profiler/Profiler.php.

  2. In the collect() method there is a comment which wrongly uses the loose word instead of lose.

public function collect(Request $request, Response $response, \Exception $exception = null)
{
    // ...

    foreach ($this->collectors as $collector) {
        $collector->collect($request, $response, $exception);

        // forces collectors to become "read/only" (they loose their object dependencies)
        $profile->addCollector(unserialize(serialize($collector)));
    }

    return $profile;
}
  1. The solution is to replace they loose their object dependencies by they lose their object dependencies.
fabpot added a commit that referenced this issue Mar 12, 2016
This PR was merged into the 2.3 branch.

Discussion
----------

Profiler typo fix

| Q             | A
| ------------- | ---
| Branch   | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18088
| License       | MIT
| Doc PR | n/a

Commits
-------

44398fc minor #18088 Fix typo for profiler
@fabpot fabpot closed this as completed Mar 12, 2016
fabpot added a commit that referenced this issue Mar 15, 2016
* 2.3:
  bumped Symfony version to 2.3.40
  set s-maxage only if all responses are cacheable
  updated VERSION for 2.3.39
  update CONTRIBUTORS for 2.3.39
  updated CHANGELOG for 2.3.39
  Improved the "branch" row of the PR table
  Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
  Fix for Isssue #18091
  replace perfom by perform
  minor #18088 Fix typo for profiler
nicolas-grekas added a commit that referenced this issue Mar 16, 2016
* 2.7:
  [PhpUnitBridge] Revert 7f62133
  bumped Symfony version to 2.3.40
  set s-maxage only if all responses are cacheable
  updated VERSION for 2.3.39
  update CONTRIBUTORS for 2.3.39
  updated CHANGELOG for 2.3.39
  Improved the "branch" row of the PR table
  [Debug] Replaced logic for detecting filesystem case sensitivity
  [Process] Wait a bit less on Windows
  Use debug member variable
  Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
  Fix for Isssue #18091
  replace perfom by perform
  minor #18088 Fix typo for profiler
  [ci] remove token for composer now that rate limiting is off

Conflicts:
	src/Symfony/Bridge/PhpUnit/composer.json
nicolas-grekas added a commit that referenced this issue Mar 16, 2016
* 2.8:
  [PhpUnitBridge] Revert 7f62133
  bumped Symfony version to 2.3.40
  set s-maxage only if all responses are cacheable
  updated VERSION for 2.3.39
  update CONTRIBUTORS for 2.3.39
  updated CHANGELOG for 2.3.39
  Improved the "branch" row of the PR table
  [Debug] Replaced logic for detecting filesystem case sensitivity
  [Process] Wait a bit less on Windows
  Use debug member variable
  Autowiring the concrete class too - consistent with behavior of other services
  Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
  Fix for Isssue #18091
  replace perfom by perform
  minor #18088 Fix typo for profiler
  [Validator] Fixing inaccurate typehint in docblock
  [ci] remove token for composer now that rate limiting is off

Conflicts:
	CHANGELOG-2.3.md
	src/Symfony/Bridge/PhpUnit/composer.json
nicolas-grekas added a commit that referenced this issue Mar 16, 2016
* 3.0:
  [PhpUnitBridge] Revert 7f62133
  bumped Symfony version to 2.3.40
  Fix leftover conflict marker in UPGRADE-3.0.md
  set s-maxage only if all responses are cacheable
  updated VERSION for 2.3.39
  update CONTRIBUTORS for 2.3.39
  updated CHANGELOG for 2.3.39
  Improved the "branch" row of the PR table
  [Debug] Replaced logic for detecting filesystem case sensitivity
  [Process] Wait a bit less on Windows
  Use debug member variable
  Autowiring the concrete class too - consistent with behavior of other services
  Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
  Fix for Isssue #18091
  replace perfom by perform
  minor #18088 Fix typo for profiler
  [Validator] Fixing inaccurate typehint in docblock
  [ci] remove token for composer now that rate limiting is off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants