Skip to content

Commit d1e95ad

Browse files
author
Kevin Buchholz
committed
Merge branch 'release/1.0.1'
2 parents e973828 + 0ac5bbc commit d1e95ad

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.0.1 - 2019-03-07 - patch release
4+
5+
### Fixed
6+
- return type hint in doc block for `makeRuleWithWhitelist` in `Sourceboat\Enumeration\Enumeration`
7+
- typo in readme
8+
9+
310
## 1.0.0 - 2019-03-06 - inital release
411

512
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ UserType::toLocalizedSelectArray(); // Returns [0 => 'Administrator', 1 => 'Mode
161161
## Validation
162162

163163
### Array Validation
164-
You may validate that an enum value passed to a controller is a valid value for a given enum by using the `EnumerationValue` rule, for easier handling there are helper methods for creating the rule: `Enumeraction::makeRule()`, `Enumeration::makeRuleWithWhitelist($whitelist)` and `Enumeration::makeRuleWithBlacklist($blacklist)`.
164+
You may validate that an enum value passed to a controller is a valid value for a given enum by using the `EnumerationValue` rule, for easier handling there are helper methods for creating the rule: `Enumeration::makeRule()`, `Enumeration::makeRuleWithWhitelist($whitelist)` and `Enumeration::makeRuleWithBlacklist($blacklist)`.
165165

166166
``` php
167167
public function store(Request $request)

src/Enumeration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static function makeRule(): EnumerationValue
135135
* Get a laravel validation rule for this enum as whitelist.
136136
*
137137
* @param array|null $whitelist the values allowed for this rule, all when left blank.
138-
* @return string
138+
* @return \Sourceboat\Enumeration\Rules\EnumerationValue
139139
*/
140140
public static function makeRuleWithWhitelist(?array $whitelist = null): EnumerationValue
141141
{

0 commit comments

Comments
 (0)