Skip to content

Commit

Permalink
Merge pull request #5 from sidz/add-router-stub
Browse files Browse the repository at this point in the history
Add Router.stub and allow to accept string as $url argument
  • Loading branch information
sidz authored Jan 29, 2024
2 parents 99d7bfd + 66db9e8 commit fa4edd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parameters:
schemaPaths:
- app/Config/Schema/*.php
stubFiles:
- stubs/Routing/Router.stub
- stubs/Utility.stub
services:
- class: PHPStanCakePHP2\ClassComponentsExtension
Expand Down
9 changes: 9 additions & 0 deletions stubs/Routing/Router.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

class Router
{
/**
* @param array|string $url
*/
public static function redirect($route, $url, $options = array()) {}
}

0 comments on commit fa4edd9

Please sign in to comment.