added strict mode

This commit is contained in:
Patrick Louys 2016-11-01 16:30:51 +01:00 committed by lubiana
parent 835e6089af
commit 8016ce77d1
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

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;