Skip to content
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

#33 corrected variable name as per @akrabat's review #34

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
#33 corrected variable name as per @akrabat's review
  • Loading branch information
Ocramius committed Apr 15, 2018
commit acef8dcf37e060fde9d2dd08dbdee83ecb10a097
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function compare(ReflectionClass $fromClass, ReflectionClass $toClass) :
{
Assert::that($fromClass->getName())->same($toClass->getName());

$removedMethods = array_diff_key(
$removedConstants = array_diff_key(
$this->accessibleConstants($fromClass),
$this->accessibleConstants($toClass)
);
Expand All @@ -26,7 +26,7 @@ public function compare(ReflectionClass $fromClass, ReflectionClass $toClass) :
sprintf('Constant %s::%s was removed', $fromClass->getName(), $constant->getName()),
true
);
}, $removedMethods)));
}, $removedConstants)));
}

/** @return ReflectionClassConstant[] */
Expand Down