| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class OptimisticLockException extends ORMException |
||
|
|
|||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var object|null |
||
| 15 | */ |
||
| 16 | private $entity; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $msg |
||
| 20 | * @param object $entity |
||
| 21 | */ |
||
| 22 | public function __construct($msg, $entity) |
||
| 23 | { |
||
| 24 | parent::__construct($msg); |
||
| 25 | $this->entity = $entity; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Gets the entity that caused the exception. |
||
| 30 | * |
||
| 31 | * @return object|null |
||
| 32 | */ |
||
| 33 | public function getEntity() |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param object $entity |
||
| 40 | * |
||
| 41 | * @return OptimisticLockException |
||
| 42 | */ |
||
| 43 | public static function lockFailed($entity) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param object $entity |
||
| 50 | * @param int $expectedLockVersion |
||
| 51 | * @param int $actualLockVersion |
||
| 52 | * |
||
| 53 | * @return OptimisticLockException |
||
| 54 | */ |
||
| 55 | public static function lockFailedVersionMismatch($entity, $expectedLockVersion, $actualLockVersion) |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $entityName |
||
| 65 | * |
||
| 66 | * @return OptimisticLockException |
||
| 67 | */ |
||
| 68 | public static function notVersioned($entityName) |
||
| 73 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths