Skip to content
Permalink
Browse files

Container: fixed var name ($component => $this) (#8)

  • Loading branch information...
Rixafy authored and dg committed Nov 2, 2019
1 parent 4a666a8 commit b2e9ead570e87f7252957e49c84dcdddec16d15d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ComponentModel/Container.php
@@ -107,7 +107,7 @@ public function removeComponent(IComponent $component): void
final public function getComponent(string $name, bool $throw = true): ?IComponent
{
if (!$throw) {
return $component->getComponentIfExists($name);
return $this->getComponentIfExists($name);
}
[$name] = $parts = explode(self::NAME_SEPARATOR, $name, 2);

0 comments on commit b2e9ead

Please sign in to comment.
You can’t perform that action at this time.