Skip to content

Commit

Permalink
Fix auto declare trait inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vegner committed Feb 14, 2018
1 parent 2b612e5 commit 3ac414d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ContainerAwareTrait.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?php

namespace SD\DependencyInjection;

trait ContainerAwareTrait {
private $autoDeclareContainer = 'container';
trait ContainerAwareTrait
{
protected $autoDeclareContainer = 'container';
private $container;

public function setContainer(Container $container) {
public function setContainer(Container $container)
{
$this->container = $container;
}

private function getContainer(): Container {
protected function getContainer(): Container
{
return $this->container;
}
}

0 comments on commit 3ac414d

Please sign in to comment.