projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
vendor
/
symfony
/
console
/
Question
/
Question.php
diff --git
a/vendor/symfony/console/Question/Question.php
b/vendor/symfony/console/Question/Question.php
index 63afbc4c0e4d075e99669e3c801b5b5d76956b6c..92b9b69362913c11a15e40298ab8ecfb68f17516 100644
(file)
--- a/
vendor/symfony/console/Question/Question.php
+++ b/
vendor/symfony/console/Question/Question.php
@@
-117,7
+117,7
@@
class Question
/**
* Gets values for the autocompleter.
*
/**
* Gets values for the autocompleter.
*
- * @return
null|iterable
+ * @return
iterable|null
*/
public function getAutocompleterValues()
{
*/
public function getAutocompleterValues()
{
@@
-127,7
+127,7
@@
class Question
/**
* Sets values for the autocompleter.
*
/**
* Sets values for the autocompleter.
*
- * @param
null|iterable
$values
+ * @param
iterable|null
$values
*
* @return $this
*
*
* @return $this
*
@@
-136,11
+136,11
@@
class Question
*/
public function setAutocompleterValues($values)
{
*/
public function setAutocompleterValues($values)
{
- if (is_array($values)) {
+ if (
\
is_array($values)) {
$values = $this->isAssoc($values) ? array_merge(array_keys($values), array_values($values)) : array_values($values);
}
$values = $this->isAssoc($values) ? array_merge(array_keys($values), array_values($values)) : array_values($values);
}
- if (null !== $values && !is_array($values) && !$values instanceof \Traversable) {
+ if (null !== $values && !
\
is_array($values) && !$values instanceof \Traversable) {
throw new InvalidArgumentException('Autocompleter values can be either an array, `null` or a `Traversable` object.');
}
throw new InvalidArgumentException('Autocompleter values can be either an array, `null` or a `Traversable` object.');
}
@@
-156,7
+156,7
@@
class Question
/**
* Sets a validator for the question.
*
/**
* Sets a validator for the question.
*
- * @param
null|callable
$validator
+ * @param
callable|null
$validator
*
* @return $this
*/
*
* @return $this
*/
@@
-170,7
+170,7
@@
class Question
/**
* Gets the validator for the question.
*
/**
* Gets the validator for the question.
*
- * @return
null|callable
+ * @return
callable|null
*/
public function getValidator()
{
*/
public function getValidator()
{
@@
-182,7
+182,7
@@
class Question
*
* Null means an unlimited number of attempts.
*
*
* Null means an unlimited number of attempts.
*
- * @param
null|int
$attempts
+ * @param
int|null
$attempts
*
* @return $this
*
*
* @return $this
*
@@
-204,7
+204,7
@@
class Question
*
* Null means an unlimited number of attempts.
*
*
* Null means an unlimited number of attempts.
*
- * @return
null|int
+ * @return
int|null
*/
public function getMaxAttempts()
{
*/
public function getMaxAttempts()
{
@@
-241,6
+241,6
@@
class Question
protected function isAssoc($array)
{
protected function isAssoc($array)
{
- return (bool) count(array_filter(array_keys($array), 'is_string'));
+ return (bool)
\
count(array_filter(array_keys($array), 'is_string'));
}
}
}
}