Skip to content

Commit 6e455d8

Browse files
committed
Merge remote-tracking branch 'origin/1.0' into develop-fwd
# Conflicts: # tests/static/phpstan.neon # tests/travis/static-unit.sh
2 parents b475999 + 9c31eac commit 6e455d8

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
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-
public const PRODUCT_LIMIT = 100;
24+
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(): void
44+
public function testCreateCategoryOrCmsPageEntity()
4545
{
4646
$this->objectManagerMock->expects($this->once())
4747
->method('create')
@@ -56,7 +56,7 @@ public function testCreateCategoryOrCmsPageEntity(): void
5656
]);
5757
}
5858

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

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

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-components",
33
"description": "Cloud Components Module for Magento 2.x",
44
"type": "magento2-module",
5-
"version": "1.0.2",
5+
"version": "1.0.3",
66
"require": {
77
"php": "^7.0",
88
"ext-json": "*",
@@ -17,18 +17,15 @@
1717
"codeception/codeception": "^2.5.3",
1818
"consolidation/robo": "^1.2",
1919
"phpmd/phpmd": "@stable",
20-
"phpstan/phpstan": "^0.11",
2120
"phpunit/phpunit": "^6.2",
2221
"squizlabs/php_codesniffer": "^3.0"
2322
},
2423
"scripts": {
2524
"test": [
26-
"@phpstan",
2725
"@phpcs",
2826
"@phpmd",
2927
"@phpunit"
3028
],
31-
"phpstan": "phpstan analyse -c Test/static/phpstan.neon",
3229
"phpcs": "phpcs ./ --standard=Test/static/phpcs-ruleset.xml -p -n",
3330
"phpmd": "phpmd Console xml Test/static/phpmd-ruleset.xml",
3431
"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) : void
82+
private function fix(File $phpcsFile, int $position)
8383
{
8484
// Get the fixer.
8585
$fixer = $phpcsFile->fixer;

0 commit comments

Comments
 (0)