Skip to content

Commit a4dca31

Browse files
1.0.3: «Use of echo language construct is discouraged»: mage2pro/core#28
1 parent 37af976 commit a4dca31

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

T/Basic.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ final class Basic extends TestCase {
77
* «How to include related entities to a response on a Web API «get list» request?»
88
* https://oplatform.club/t/105
99
*/
10-
function t01_orders() {echo df_json_encode(df_oro_get_list(
10+
function t01_orders() {print_r(df_json_encode(df_oro_get_list(
1111
'orders', ['product' => 1], ['product', 'website'], true
12-
));}
12+
)));}
1313

1414
/** @test */
1515
function t02_orders_stripe() {
@@ -34,6 +34,6 @@ function t02_orders_stripe() {
3434
];
3535
}
3636
));
37-
echo df_json_encode($websites);
37+
print_r(df_json_encode($websites));
3838
}
3939
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/oro"
3-
,"version": "1.0.2"
3+
,"version": "1.0.3"
44
,"description": "A custom integration between Magento 2 and Oro Platform."
55
,"type": "magento2-module"
66
,"homepage": "https://ocrm.pro"
@@ -11,6 +11,6 @@
1111
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=2.8.17"}
14+
,"require": {"mage2pro/core": ">=2.12.21"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Df\\Oro\\": ""}}
1616
}

0 commit comments

Comments
 (0)