for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Component\Resource\Exception;
/**
* @author Grzegorz Sadowski <[email protected]>
class RaceConditionException extends UpdateHandlingException
{
* @param \Exception $previous
$previous
null|\Exception
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
public function __construct(\Exception $previous = null)
parent::__construct(
'Operated entity was previously modified.',
'race_condition_error',
409,
null !== $previous ? $previous->getCode() : 0,
);
}
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.