added strict mode

This commit is contained in:
Patrick Louys 2016-11-01 16:30:51 +01:00 committed by GitHub
parent 8d3b3ee1e3
commit 32a9e94450

View file

@ -9,7 +9,7 @@ There is only one injector that I can recommend: [Auryn](https://github.com/rdlo
Install the Auryn package and then create a new file called `Dependencies.php` in your `src/` folder. In there add the following content: Install the Auryn package and then create a new file called `Dependencies.php` in your `src/` folder. In there add the following content:
```php ```php
<?php <?php declare(strict_types = 1);
$injector = new \Auryn\Injector; $injector = new \Auryn\Injector;
@ -63,7 +63,7 @@ Now all your controller constructor dependencies will be automatically resolved
Go back to your `Homepage` controller and change it to the following: Go back to your `Homepage` controller and change it to the following:
```php ```php
<?php <?php declare(strict_types = 1);
namespace Example\Controllers; namespace Example\Controllers;