Skip to content

Commit

Permalink
Fixing fill unsupported function type hint issue. Updating change log.
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-unleashed-technologies committed Feb 3, 2022
1 parent 5a2adc6 commit a53330a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi

## [Unreleased][unreleased]

## [0.3.17] - 2022-02-03

### Fixed

- Fixing `fill` unsupported function type hint issue.

## [0.3.16] - 2022-02-03

### Changed
Expand Down Expand Up @@ -258,7 +264,8 @@ config vars to be overridden.

**Initial release!**

[unreleased]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.16...main
[unreleased]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.17...main
[0.3.17]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.16...0.3.17
[0.3.16]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.15...0.3.16
[0.3.15]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.14...0.3.15
[0.3.14]: https://github.com/unleashedtech/deployer-recipes/compare/0.3.13...0.3.14
Expand Down
6 changes: 3 additions & 3 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
/**
* Sets a config parameter to the given value if it is not already set.
*
* @param string $var
* @param string $var
* The config parameter to conditionally set.
* @param mixed $defaultValue
* @param string|string[] $defaultValue
* The config parameter value to conditionally set.
*/
function fill(string $var, mixed $defaultValue): void
function fill(string $var, $defaultValue): void
{
if (! has($var)) {
set($var, $defaultValue);
Expand Down

0 comments on commit a53330a

Please sign in to comment.