aboutsummaryrefslogtreecommitdiff
path: root/tests/Fixtures/DuplicateParamController.php
blob: 8ea30603565e135caf40ceb75a0d0481f5d65ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace BrettParson\MiniRoute\Tests\Fixtures;

use BrettParson\MiniRoute\Attribute\Get;
use BrettParson\MiniRoute\Http\ResponseInterface;

/**
 * Declares a route with a duplicated parameter name — a route that can
 * never match (v0.1.0 baseline; see miniroute-uhs.1).
 */
final class DuplicateParamController
{
    #[Get('/dup/{id}/x/{id}')]
    public function run(): ResponseInterface
    {
        return new TestResponse(200, 'dup');
    }
}