Skip to content

Commit fa4edd9

Browse files
authored
Merge pull request #5 from sidz/add-router-stub
Add Router.stub and allow to accept string as $url argument
2 parents 99d7bfd + 66db9e8 commit fa4edd9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
schemaPaths:
1010
- app/Config/Schema/*.php
1111
stubFiles:
12+
- stubs/Routing/Router.stub
1213
- stubs/Utility.stub
1314
services:
1415
- class: PHPStanCakePHP2\ClassComponentsExtension

stubs/Routing/Router.stub

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
class Router
4+
{
5+
/**
6+
* @param array|string $url
7+
*/
8+
public static function redirect($route, $url, $options = array()) {}
9+
}

0 commit comments

Comments
 (0)