Skip to content

Commit

Permalink
Merge pull request Sylius#9540 from pamil/1.1-phpstan-fixes
Browse files Browse the repository at this point in the history
PHPStan 0.10 upgrade & road to level 2 checks
  • Loading branch information
pamil authored Jul 3, 2018
2 parents 7646bda + 02e4755 commit 4007f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Controller/FlashHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Doctrine\Common\Inflector\Inflector;
use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
use Sylius\Component\Resource\Model\ResourceInterface;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Translation\TranslatorBagInterface;
use Symfony\Component\Translation\TranslatorInterface;
Expand Down Expand Up @@ -122,7 +123,9 @@ private function addFlash(string $type, string $message, array $parameters = [])
$message = $this->prepareMessage($message, $parameters);
}

$this->session->getBag('flashes')->add($type, $message);
/** @var FlashBagInterface $flashBag */
$flashBag = $this->session->getBag('flashes');
$flashBag->add($type, $message);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Controller/RequestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function getFormOptions()
}

/**
* @param $name
* @param string $name
*
* @return string
*/
Expand Down

0 comments on commit 4007f89

Please sign in to comment.