Skip to content

Commit

Permalink
TE-8537 Added PHP 8 Travis support (#1904)
Browse files Browse the repository at this point in the history
TE-8537 PHP8 (future check) in CI
  • Loading branch information
asaulenko authored Mar 4, 2021
1 parent 37efb24 commit 56b72d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ parameters:
- '#Instantiated class .+NativePasswordEncoder not found.#'
- '#Comparison operation "<" between [1-9] and 3 is always (true|false).#'
- '#Else branch is unreachable because previous condition is always true.#'
excludePaths:
- %rootDir%/../../../vendor/spryker/spryker-shop/Bundles/ShopApplication/src/SprykerShop/Yves/ShopApplication/Plugin/AbstractTwigExtensionPlugin.php
14 changes: 9 additions & 5 deletions src/SprykerShop/Yves/ShopApplication/Bootstrap/YvesBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public function boot(): ApplicationInterface
*
* @return \Spryker\Yves\Kernel\Container
*/
protected function provideExternalDependencies(AbstractBundleDependencyProvider $dependencyProvider, Container $container)
{
protected function provideExternalDependencies(
AbstractBundleDependencyProvider $dependencyProvider,
Container $container
): Container {
$dependencyProvider->provideDependencies($container);

return $container;
Expand All @@ -49,10 +51,12 @@ protected function provideExternalDependencies(AbstractBundleDependencyProvider
* @param \Spryker\Yves\Kernel\Dependency\Injector\DependencyInjector $dependencyInjector
* @param \Spryker\Yves\Kernel\Container $container
*
* @return \Spryker\Shared\Kernel\ContainerInterface|\Spryker\Zed\Kernel\Container
* @return \Spryker\Yves\Kernel\Container
*/
protected function injectExternalDependencies(DependencyInjector $dependencyInjector, Container $container)
{
protected function injectExternalDependencies(
DependencyInjector $dependencyInjector,
Container $container
): Container {
$container = $dependencyInjector->inject($container);

return $container;
Expand Down

0 comments on commit 56b72d3

Please sign in to comment.