The expression return false returns the type false which is incompatible with the return type mandated by Zicht\Bundle\UrlBundle\U...or::translateKeyInput() of string.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
Loading history...
31
}
32
33
34
/**
35
* @{inheritDoc}
36
*/
37
1
public function translateValueInput($keyName, $value)
38
{
39
1
foreach ($this->translators as $translator) {
40
1
if (false !== ($translation = $translator->translateValueInput($keyName, $value))) {
The expression return false returns the type false which is incompatible with the return type mandated by Zicht\Bundle\UrlBundle\U...::translateValueInput() of string.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
Loading history...
46
}
47
48
49
/**
50
* @{inheritDoc}
51
*/
52
2
public function translateKeyOutput($keyName)
53
{
54
2
foreach ($this->translators as $translator) {
55
2
if (false !== ($translation = $translator->translateKeyOutput($keyName))) {
The expression return false returns the type false which is incompatible with the return type mandated by Zicht\Bundle\UrlBundle\U...r::translateKeyOutput() of string.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
Loading history...
61
}
62
63
64
/**
65
* @{inheritDoc}
66
*/
67
1
public function translateValueOutput($keyName, $value)
68
{
69
1
foreach ($this->translators as $translator) {
70
1
if (false !== ($translation = $translator->translateValueOutput($keyName, $value))) {
The expression return false returns the type false which is incompatible with the return type mandated by Zicht\Bundle\UrlBundle\U...:translateValueOutput() of string.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: