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

Skip to content

[EventDispatcher] Remove dead code in WrappedListener #23117

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
Jun 9, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jun 9, 2017

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

The static $cloner property is unused since ab716c6

@@ -57,10 +54,6 @@ public function __construct($listener, $name, Stopwatch $stopwatch, EventDispatc
if (null !== $name) {
$this->name = $name;
}

if (null === self::$cloner) {
self::$cloner = class_exists(ClassStub::class) ? new VarCloner() : false;
Copy link
Member

Choose a reason for hiding this comment

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

I'd keep a static prop for caching the class_exists check, eg:
self::$hasClassStub = class_exists(ClassStub::class);

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Jun 9, 2017
@fabpot
Copy link
Member

fabpot commented Jun 9, 2017

Thank you @chalasr.

@fabpot fabpot merged commit 8b7de02 into symfony:3.3 Jun 9, 2017
fabpot added a commit that referenced this pull request Jun 9, 2017
…halasr)

This PR was merged into the 3.3 branch.

Discussion
----------

[EventDispatcher] Remove dead code in WrappedListener

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

The static `$cloner` property is unused since ab716c6

Commits
-------

8b7de02 [EventDispatcher] Remove dead code in WrappedListener
@chalasr chalasr deleted the rm-dead-cloner branch June 9, 2017 15:28
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.

4 participants