Browse Source

Merge pull request #13364 from cakephp/3.x-adddetector-ext-example

Correct parameter name for inspecting extensions
ADmad 6 years ago
parent
commit
7e905e1836
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/ServerRequest.php

+ 1 - 1
src/Http/ServerRequest.php

@@ -1002,7 +1002,7 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
      * using the `options` key. This is useful when you want to check
      * if a request parameter is in a list of options.
      *
-     * `addDetector('extension', ['param' => 'ext', 'options' => ['pdf', 'csv']]`
+     * `addDetector('extension', ['param' => '_ext', 'options' => ['pdf', 'csv']]`
      *
      * @param string $name The name of the detector.
      * @param callable|array $callable A callable or options array for the detector definition.