@@ -113,7 +113,7 @@ public function insert(ItemInterface $item): string
113113 * @param mixed $key The key to update, or an array of key-value pairs
114114 * @param mixed $value The value to set $key to
115115 */
116- public function update (string $ itemIdentifier , $ key , $ value = null )
116+ public function update (string $ itemIdentifier , $ key , $ value = null ): void
117117 {
118118 /** @var Item $item */
119119 foreach ($ this ->contents () as $ item ) {
@@ -130,15 +130,15 @@ public function update(string $itemIdentifier, $key, $value = null)
130130 *
131131 * @param string $identifier Unique item identifier
132132 */
133- public function remove (string $ identifier )
133+ public function remove (string $ identifier ): void
134134 {
135135 $ this ->store ->remove ($ identifier );
136136 }
137137
138138 /**
139139 * Destroy/empty the basket.
140140 */
141- public function destroy ()
141+ public function destroy (): void
142142 {
143143 $ this ->store ->destroy ();
144144 }
@@ -258,7 +258,7 @@ public function totalItems($unique = false): int
258258 *
259259 * @param string $identifier
260260 */
261- public function setIdentifier (string $ identifier )
261+ public function setIdentifier (string $ identifier ): void
262262 {
263263 $ this ->store ->setIdentifier ($ identifier );
264264 }
@@ -288,7 +288,7 @@ protected function createItemIdentifier(ItemInterface $item): string
288288 * Check if a basket item has the required parameters.
289289 * @param ItemInterface $item
290290 */
291- protected function checkArgs (ItemInterface $ item )
291+ protected function checkArgs (ItemInterface $ item ): void
292292 {
293293 foreach ($ this ->requiredParams as $ param ) {
294294 if (! array_key_exists ($ param , $ item ->toArray ())) {
0 commit comments