The class SprykerShop\Yves\ShopApp...tYvesControllerProvider has been deprecated: Use {@link \Spryker\Yves\Router\Plugin\RouteProvider\AbstractRouteProviderPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
13
class PaypalExpressControllerProvider extends /** @scrutinizer ignore-deprecated */ AbstractYvesControllerProvider
Loading history...
14
{
15
public const ROUTE_PAYPAL_EXPRESS_SUCCESS_RESPONSE = 'paypal-express-success';
16
public const ROUTE_PAYPAL_EXPRESS_SHIPMENT_ADD = 'paypal-express-shipment-add';
17
18
/**
19
* @param \Silex\Application $app
20
*
21
* @return $this
22
*/
23
protected function defineControllers(Application $app)
The expression return $this returns the type SprykerEco\Yves\Braintre...pressControllerProvider which is incompatible with the return type mandated by Spryker\Yves\Application...er::defineControllers() of void.
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.}}