Added Laravel 5.6 stable support (#484)

* Laravel 5.6 stable support

* fixed bug where opt group attributes where passed to option, added opt group attributes to opt group

* dropped php 7.0 because Laravel minimum requirement is now php 7.1.3
This commit is contained in:
Max Mitschke authored and Tom Shafer committed 2018-02-08 08:16:30 -08:00
1 parent 137a2efcf1
commit e6496328af
4 files changed
+14 -15

No files matched your search

-1
View File
@@ -1,7 +1,6 @@
language: php language: php
php: php:
- 7.0
- 7.1 - 7.1
sudo: false sudo: false
+7 -7
View File
@@ -18,15 +18,15 @@
} }
], ],
"require": { "require": {
"php": ">=7.0.0", "php": ">=7.1.3",
"illuminate/http": "5.6.x-dev", "illuminate/http": "5.6.*",
"illuminate/routing": "5.6.x-dev", "illuminate/routing": "5.6.*",
"illuminate/session": "5.6.x-dev", "illuminate/session": "5.6.*",
"illuminate/support": "5.6.x-dev", "illuminate/support": "5.6.*",
"illuminate/view": "5.6.x-dev" "illuminate/view": "5.6.*"
}, },
"require-dev": { "require-dev": {
"illuminate/database": "5.6.x-dev", "illuminate/database": "5.6.*",
"mockery/mockery": "~0.9.4", "mockery/mockery": "~0.9.4",
"phpunit/phpunit": "~5.4" "phpunit/phpunit": "~5.4"
}, },
+5 -5
View File
@@ -527,7 +527,7 @@ class FormBuilder
// the element. Then we'll create the final textarea elements HTML for us. // the element. Then we'll create the final textarea elements HTML for us.
$options = $this->html->attributes($options); $options = $this->html->attributes($options);
return $this->toHtmlString('<textarea' . $options . '>' . e($value). '</textarea>'); return $this->toHtmlString('<textarea' . $options . '>' . e($value, false). '</textarea>');
} }
/** /**
@@ -722,10 +722,10 @@ class FormBuilder
if (is_array($display)) { if (is_array($display)) {
$html[] = $this->optionGroup($display, $value, $selected, $attributes, $optionAttributes, $level+5); $html[] = $this->optionGroup($display, $value, $selected, $attributes, $optionAttributes, $level+5);
} else { } else {
$html[] = $this->option($space.$display, $value, $selected, $attributes, $optionAttributes); $html[] = $this->option($space.$display, $value, $selected, $optionAttributes);
} }
} }
return $this->toHtmlString('<optgroup label="' . e($space.$label) . '">' . implode('', $html) . '</optgroup>'); return $this->toHtmlString('<optgroup label="' . e($space.$label, false) . '"' . $this->html->attributes($attributes) . '>' . implode('', $html) . '</optgroup>');
} }
/** /**
@@ -746,7 +746,7 @@ class FormBuilder
$string = '<option' . $this->html->attributes($options) . '>'; $string = '<option' . $this->html->attributes($options) . '>';
if ($display !== null) { if ($display !== null) {
$string .= e($display) . '</option>'; $string .= e($display, false) . '</option>';
} }
return $this->toHtmlString($string); return $this->toHtmlString($string);
@@ -769,7 +769,7 @@ class FormBuilder
'value' => '', 'value' => '',
]; ];
return $this->toHtmlString('<option' . $this->html->attributes($options) . ' hidden="hidden">' . e($display) . '</option>'); return $this->toHtmlString('<option' . $this->html->attributes($options) . ' hidden="hidden">' . e($display, false) . '</option>');
} }
/** /**
+2 -2
View File
@@ -387,7 +387,7 @@ class HtmlBuilder
if (is_array($value)) { if (is_array($value)) {
return $this->nestedListing($key, $type, $value); return $this->nestedListing($key, $type, $value);
} else { } else {
return '<li>' . e($value) . '</li>'; return '<li>' . e($value, false) . '</li>';
} }
} }
@@ -456,7 +456,7 @@ class HtmlBuilder
} }
if (! is_null($value)) { if (! is_null($value)) {
return $key . '="' . e($value) . '"'; return $key . '="' . e($value, false) . '"';
} }
} }