Skip to content

Commit

Permalink
0.2.7: «Use of echo language construct is discouraged»: mage2pro/core#28
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 27, 2017
1 parent 433299c commit 5618fd1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion T/Basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function accounts() {$this->p();}
function invalid() {$this->p('dummy');}

/** 2017-04-23 */
function metadata() {echo F::metadata();}
function metadata() {print_r(F::metadata());}

/** 2017-07-01 */
function products() {$this->o(array_filter(F::products(), function(array $p) {return
Expand Down
2 changes: 1 addition & 1 deletion T/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ function discovery() {
// Doing a GET without an authorization header yields the same results.»
->setHeaders(['Authorization' => 'Bearer'])
;
echo df_dump($c->request()->getHeaders());
print_r(df_dump($c->request()->getHeaders()));
}
}
4 changes: 2 additions & 2 deletions T/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function pricelevels() {$this->p();}
function productpricelevels() {$this->o(F::productpricelevels(S::s()->priceList()));}

/** @test 2017-07-02 */
function priceList() {echo S::s()->priceList();}
function priceList() {print_r(S::s()->priceList());}

/** 2017-07-02 */
function GetDefaultPriceLevel() {echo $this->p();}
function GetDefaultPriceLevel() {print_r($this->p());}
}
2 changes: 1 addition & 1 deletion T/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract class TestCase extends \Df\Core\TestCase {
* @used-by \Dfe\Dynamics365\T\Price::productpricelevels()
* @param array(string => mixed) $r
*/
final protected function o(array $r) {echo df_json_encode($r);}
final protected function o(array $r) {print_r(df_json_encode($r));}

/**
* 2017-07-01
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/dynamics365"
,"version": "0.2.6"
,"version": "0.2.7"
,"description": "The «Microsoft Dynamics 365» extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/dynamics365"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.8.17"}
,"require": {"mage2pro/core": ">=2.12.21"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Dynamics365\\": ""}}
,"keywords": [
"CRM"
Expand Down

0 comments on commit 5618fd1

Please sign in to comment.