Skip to content

Commit 91446e6

Browse files
committed
Resolving merge conflicts
1 parent 11980a7 commit 91446e6

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Model/UrlFinder/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Product implements CloudUrlFinderInterface
2121
/**
2222
* Product limit per store
2323
*/
24-
const PRODUCT_LIMIT = 100;
24+
public const PRODUCT_LIMIT = 100;
2525

2626
/**
2727
* @var UrlFixer

Test/Unit/Model/UrlFinderFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function setUp()
4141
$this->urlFinderFactory = new UrlFinderFactory($this->objectManagerMock);
4242
}
4343

44-
public function testCreateCategoryOrCmsPageEntity()
44+
public function testCreateCategoryOrCmsPageEntity(): void
4545
{
4646
$this->objectManagerMock->expects($this->once())
4747
->method('create')
@@ -56,7 +56,7 @@ public function testCreateCategoryOrCmsPageEntity()
5656
]);
5757
}
5858

59-
public function testCreateProductEntity()
59+
public function testCreateProductEntity(): void
6060
{
6161
$this->objectManagerMock->expects($this->once())
6262
->method('create')
@@ -74,7 +74,7 @@ public function testCreateProductEntity()
7474
]);
7575
}
7676

77-
public function testCreateWrongType()
77+
public function testCreateWrongType(): void
7878
{
7979
$this->expectException(UnexpectedValueException::class);
8080
$this->expectExceptionMessage('Wrong entity type.');

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
"codeception/codeception": "^2.5.3",
1818
"consolidation/robo": "^1.2",
1919
"phpmd/phpmd": "@stable",
20+
"phpstan/phpstan": "^0.11",
2021
"phpunit/phpunit": "^6.2",
2122
"squizlabs/php_codesniffer": "^3.0"
2223
},
2324
"scripts": {
2425
"test": [
26+
"@phpstan",
2527
"@phpcs",
2628
"@phpmd",
2729
"@phpunit"
2830
],
31+
"phpstan": "phpstan analyse -c test/static/phpstan.neon",
2932
"phpcs": "phpcs ./ --standard=test/static/phpcs-ruleset.xml -p -n",
3033
"phpmd": "phpmd Console xml test/static/phpmd-ruleset.xml",
3134
"phpunit": "phpunit --configuration Test/Unit",

tests/static/Sniffs/Directives/StrictTypesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function process(File $phpcsFile, $stackPtr)
7979
* @param File $phpcsFile
8080
* @param int $position
8181
*/
82-
private function fix(File $phpcsFile, int $position)
82+
private function fix(File $phpcsFile, int $position) : void
8383
{
8484
// Get the fixer.
8585
$fixer = $phpcsFile->fixer;

0 commit comments

Comments
 (0)