← All changes
|
vendor_prefixed/psr/container/src/ContainerInterface.php
+3
-5
18.2
→
28.5
View file →
| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -/** | |
| 4 | - * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) | |
| 5 | - */ | |
| 3 | +declare (strict_types=1); | |
| 6 | 4 | namespace YoastSEO_Vendor\Psr\Container; |
| 7 | 5 | |
| 8 | 6 | /** |
| 9 | 7 | * Describes the interface of a container that exposes methods to read its entries. |
| @@ -19,9 +17,9 @@ | ||
| 19 | 17 | * @throws ContainerExceptionInterface Error while retrieving the entry. |
| 20 | 18 | * |
| 21 | 19 | * @return mixed Entry. |
| 22 | 20 | */ |
| 23 | - public function get($id); | |
| 21 | + public function get(string $id); | |
| 24 | 22 | /** |
| 25 | 23 | * Returns true if the container can return an entry for the given identifier. |
| 26 | 24 | * Returns false otherwise. |
| 27 | 25 | * |
| @@ -31,6 +29,6 @@ | ||
| 31 | 29 | * @param string $id Identifier of the entry to look for. |
| 32 | 30 | * |
| 33 | 31 | * @return bool |
| 34 | 32 | */ |
| 35 | - public function has($id); | |
| 33 | + public function has(string $id); | |
| 36 | 34 | } |