yiisoft /
demo
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace App; |
||
| 6 | |||
| 7 | use App\Exception\MethodNotAllowedException; |
||
| 8 | use Psr\Http\Message\ResponseInterface; |
||
|
0 ignored issues
–
show
|
|||
| 9 | |||
| 10 | trait RestControllerTrait |
||
| 11 | { |
||
| 12 | public function delete(): ResponseInterface |
||
| 13 | { |
||
| 14 | throw new MethodNotAllowedException(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function head(): ResponseInterface |
||
| 18 | { |
||
| 19 | throw new MethodNotAllowedException(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function get(): ResponseInterface |
||
| 23 | { |
||
| 24 | throw new MethodNotAllowedException(); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function list(): ResponseInterface |
||
| 28 | { |
||
| 29 | throw new MethodNotAllowedException(); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function options(): ResponseInterface |
||
| 33 | { |
||
| 34 | throw new MethodNotAllowedException(); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function patch(): ResponseInterface |
||
| 38 | { |
||
| 39 | throw new MethodNotAllowedException(); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function post(): ResponseInterface |
||
| 43 | { |
||
| 44 | throw new MethodNotAllowedException(); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function put(): ResponseInterface |
||
| 48 | { |
||
| 49 | throw new MethodNotAllowedException(); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths