Skip to content

Commit

Permalink
Merge pull request #4 from kevinreynolds/type-hinting
Browse files Browse the repository at this point in the history
using "callable" type instead of "mixed"
  • Loading branch information
tanjemark authored Feb 21, 2021
2 parents f6699ea + 2bd67ff commit d24b913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Vimeo extends Field
* @var string
*/
public $component = 'vimeo';
public function __construct(string $name, ?string $attribute = null, ?mixed $resolveCallback = null)

public function __construct(string $name, ?string $attribute = null, ?callable $resolveCallback = null)
{
parent::__construct($name, $attribute, $resolveCallback);
$this->withMeta([
Expand Down

0 comments on commit d24b913

Please sign in to comment.