Optimisations

- Added phpunit cache to .gitignore
- Updated README with latest helper.php example.
- Minor phpDocs changes.
This commit is contained in:
Simon Sessingø
2021-03-24 23:18:17 +01:00
parent d9c63699f5
commit 0ec7c0d960
4 changed files with 5 additions and 6 deletions
+1 -3
View File
@@ -300,8 +300,6 @@ We recommend that you add these helper functions to your project. These will all
To implement the functions below, simply copy the code to a new file and require the file before initializing the router or copy the `helpers.php` we've included in this library.
```php
<?php
use Pecee\SimpleRouter\SimpleRouter as Router;
use Pecee\Http\Url;
use Pecee\Http\Response;
@@ -349,7 +347,7 @@ function request(): Request
/**
* Get input class
* @param string|null $index Parameter index name
* @param string|null $defaultValue Default return value
* @param string|mixed|null $defaultValue Default return value
* @param array ...$methods Default methods
* @return \Pecee\Http\Input\InputHandler|array|string|null
*/