-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from magento-gl/Hammer-SVC-False-Positive-Build
AC-6945::SVC false-positive build failures
- Loading branch information
Showing
9 changed files
with
263 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\SemanticVersionChecker\Operation\DiXml; | ||
|
||
use PHPSemVerChecker\Operation\Operation; | ||
use PHPSemVerChecker\SemanticVersioning\Level; | ||
|
||
/** | ||
* When a virtual type was changed. | ||
*/ | ||
class VirtualTypeToTypeChanged extends Operation | ||
{ | ||
/** | ||
* Error codes. | ||
* | ||
* @var array | ||
*/ | ||
protected $code = 'M201'; | ||
|
||
/** | ||
* Change level. | ||
* | ||
* @var int | ||
*/ | ||
protected $level = Level::PATCH; | ||
|
||
/** | ||
* Operation message. | ||
* | ||
* @var string | ||
*/ | ||
protected $reason = 'Virtual Type was changed to type'; | ||
/** | ||
* File path before changes. | ||
* | ||
* @var string | ||
*/ | ||
protected $fileBefore; | ||
|
||
/** | ||
* Property context before changes. | ||
* | ||
* @var \PhpParser\Node\Stmt | ||
*/ | ||
protected $contextBefore; | ||
|
||
/** | ||
* Property before changes. | ||
* | ||
* @var \PhpParser\Node\Stmt\Property | ||
*/ | ||
protected $propertyBefore; | ||
|
||
/** | ||
* @param string $fileBefore | ||
* @param string $target | ||
*/ | ||
public function __construct($fileBefore, $target) | ||
{ | ||
$this->fileBefore = $fileBefore; | ||
$this->target = $target; | ||
} | ||
|
||
/** | ||
* Returns file path before changes. | ||
* | ||
* @return string | ||
*/ | ||
public function getLocation(): string | ||
{ | ||
return $this->fileBefore; | ||
} | ||
|
||
/** | ||
* Returns line position of existed property. | ||
* | ||
* @return int | ||
*/ | ||
public function getLine(): int | ||
{ | ||
return 0; | ||
} | ||
/** | ||
* Get level. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getLevel(): int | ||
{ | ||
return $this->level; | ||
} | ||
} |
Oops, something went wrong.