Browse Source

Update docblock

ADmad 4 years ago
parent
commit
e0f3c54f47
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/Controller/Controller.php
  2. 1 1
      src/Core/PluginCollection.php

+ 2 - 0
src/Controller/Controller.php

@@ -560,6 +560,7 @@ class Controller implements EventListenerInterface, EventDispatcherInterface
      *  - `only`: (array|string) Only run the middleware for specified actions.
      *  - `except`: (array|string) Run the middleware for all actions except the specified ones.
      * @return void
+     * @since 4.3.0
      * @psalm-param array{only?: array|string, except?: array|string} $options
      */
     public function middleware($middleware, array $options = [])
@@ -574,6 +575,7 @@ class Controller implements EventListenerInterface, EventDispatcherInterface
      * Get middleware to be applied for this controller.
      *
      * @return array
+     * @since 4.3.0
      */
     public function getMiddleware(): array
     {

+ 1 - 1
src/Core/PluginCollection.php

@@ -115,7 +115,7 @@ class PluginCollection implements Iterator, Countable
      * This method is not part of the official public API as plugins with
      * no plugin class are being phased out.
      *
-     * @param string $name The plugin name to locate a path for. Will return '' when a plugin cannot be found.
+     * @param string $name The plugin name to locate a path for.
      * @return string
      * @throws \Cake\Core\Exception\MissingPluginException when a plugin path cannot be resolved.
      * @internal