Skip to content

Commit b9725dd

Browse files
authored
Merge pull request #3 from aune-io/1.2-develop
Magento 2.3 support
2 parents 29456a9 + ad78ab4 commit b9725dd

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ sudo: false
33
language: php
44

55
php:
6-
- 7.0
76
- 7.1
7+
- 7.2
88

99
install:
10+
- mkdir -p ~/.composer/
1011
- echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > ~/.composer/auth.json
1112
- composer install --prefer-dist
1213
- composer create-project --repository=https://repo.magento.com magento/marketplace-eqp marketplace-eqp

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This modules prevents the generation of those urls if the aforementioned setting
1313
## System requirements
1414
This extension supports the following versions of Magento:
1515

16-
* Community Edition (CE) versions 2.1.x and 2.2.x
16+
* Community Edition (CE) versions 2.1.x, 2.2.x and 2.3.x
1717

1818
## Installation
1919
1. Require the module via Composer

Test/Unit/bootstrap.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<?php
2+
23
// @codingStandardsIgnoreFile
4+
35
require_once realpath(__DIR__ . '/../../vendor/autoload.php');
4-
/**
5-
* Create value-object \Magento\Framework\Phrase
6-
*
7-
* @SuppressWarnings(PHPMD.ShortMethodName)
8-
* @return \Magento\Framework\Phrase
9-
*/
10-
function __()
11-
{
12-
$argc = func_get_args();
13-
$text = array_shift($argc);
14-
if (!empty($argc) && is_array($argc[0])) {
15-
$argc = $argc[0];
6+
7+
if (!function_exists('__')) {
8+
/**
9+
* Create value-object \Magento\Framework\Phrase
10+
*
11+
* @SuppressWarnings(PHPMD.ShortMethodName)
12+
* @return \Magento\Framework\Phrase
13+
*/
14+
function __()
15+
{
16+
$argc = func_get_args();
17+
$text = array_shift($argc);
18+
if (!empty($argc) && is_array($argc[0])) {
19+
$argc = $argc[0];
20+
}
21+
return new \Magento\Framework\Phrase($text, $argc);
1622
}
17-
return new \Magento\Framework\Phrase($text, $argc);
1823
}

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
}
99
],
1010
"require": {
11-
"php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
12-
"psr/log": "1.0.2",
13-
"magento/framework": "101.0.*",
14-
"magento/module-catalog-url-rewrite": "100.2.*"
11+
"php": "~7.1.0|~7.2.0",
12+
"psr/log": "1.1.0",
13+
"magento/framework": "102.0.*",
14+
"magento/module-catalog-url-rewrite": "100.3.*"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "~6.2.0",
18-
"squizlabs/php_codesniffer": "3.2.2",
17+
"phpunit/phpunit": "~6.5.13",
18+
"squizlabs/php_codesniffer": "3.3.1",
1919
"phpmd/phpmd": "@stable",
2020
"php-coveralls/php-coveralls": "~2.1.0"
2121
},

0 commit comments

Comments
 (0)