Skip to content

Commit 1f487e6

Browse files
committed
Fix too restrictive type hint
1 parent c4b9374 commit 1f487e6

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/View/Helper/CkToolsHelper.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CkToolsHelper extends Helper
1818
use BackButtonTrait;
1919

2020
/**
21-
* Used heleprs
21+
* Used helpers
2222
*
2323
* @var array
2424
*/
@@ -129,8 +129,8 @@ public function mailtoLink(string $email, array $options = []): string
129129
/**
130130
* Renders an edit button
131131
*
132-
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
133-
* @param array $options Config options
132+
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
133+
* @param array $options Config options
134134
* @return string
135135
*/
136136
public function editButton(EntityInterface $entity, array $options = []): string
@@ -169,8 +169,8 @@ public function editButton(EntityInterface $entity, array $options = []): string
169169
/**
170170
* Renders a details button
171171
*
172-
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
173-
* @param array $options Config options
172+
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
173+
* @param array $options Config options
174174
* @return string
175175
*/
176176
public function viewButton(EntityInterface $entity, array $options = []): string
@@ -208,8 +208,8 @@ public function viewButton(EntityInterface $entity, array $options = []): string
208208
/**
209209
* Renders an add button
210210
*
211-
* @param string $title Link Caption
212-
* @param array $options Additional Options
211+
* @param string $title Link Caption
212+
* @param array $options Additional Options
213213
* @return string
214214
*/
215215
public function addButton(string $title = null, array $options = []): string
@@ -240,8 +240,8 @@ public function addButton(string $title = null, array $options = []): string
240240
/**
241241
* Renders an delete button
242242
*
243-
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
244-
* @param array $options Config options
243+
* @param \Cake\Datasource\EntityInterface $entity Entity to take the ID from
244+
* @param array $options Config options
245245
* @return string
246246
*/
247247
public function deleteButton(EntityInterface $entity, array $options = []): string
@@ -316,9 +316,9 @@ public function formButtons(array $options = []): string
316316
/**
317317
* Renders a button
318318
*
319-
* @param string $title Title to display
320-
* @param string|array $url URL to point to
321-
* @param array $options Additional Options
319+
* @param string $title Title to display
320+
* @param string|array $url URL to point to
321+
* @param array $options Additional Options
322322
* @return string
323323
*/
324324
public function button(string $title, $url = false, array $options = []): string
@@ -342,12 +342,12 @@ public function button(string $title, $url = false, array $options = []): string
342342
/**
343343
* Renders a back button using the back actions within the session
344344
*
345-
* @param string $title button caption
346-
* @param array $url url to link to
347-
* @param array $options link() config
345+
* @param string $title button caption
346+
* @param string|array $url url to link to
347+
* @param array $options link() config
348348
* @return string
349349
*/
350-
public function backButton(string $title = null, array $url = null, array $options = []): string
350+
public function backButton(string $title = null, $url = null, array $options = []): string
351351
{
352352
$options = Hash::merge([
353353
'icon' => 'arrow-left',

0 commit comments

Comments
 (0)