Skip to content

Commit

Permalink
Allow null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Thompson committed Aug 29, 2016
1 parent 6eeab1b commit bfe68a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function guess(Migration $migration)

foreach ($assignments as &$assignment) {
foreach (['label', 'warning', 'instructions', 'placeholder'] as $key) {
if (!array_get($assignment, $locale . '.' . $key)) {
if (is_null(array_get($assignment, $locale . '.' . $key))) {
$assignment = array_add(
$assignment,
$locale . '.' . $key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function guess(Migration $migration)

foreach ($fields as &$field) {
foreach (['name', 'warning', 'instructions'] as $key) {
if (!array_get($field, $locale . '.' . $key)) {
if (is_null(array_get($field, $locale . '.' . $key))) {
$field = array_add(
$field,
$locale . '.' . $key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function guess(Migration $migration)
$stream = $migration->getStream();

foreach (['name', 'description'] as $key) {
if (!array_get($stream, $locale . '.' . $key)) {
if (is_null(array_get($stream, $locale . '.' . $key))) {
$stream = array_add(
$stream,
$locale . '.' . $key,
Expand Down

0 comments on commit bfe68a3

Please sign in to comment.