Skip to content

Commit

Permalink
修复错误等级包括E_STRICT时的错误信息 Deprecated: Non-static method xxx::toString() …
Browse files Browse the repository at this point in the history
…should not be called statically
  • Loading branch information
Yurunsoft committed May 13, 2019
1 parent 2e01aa2 commit 8ceef75
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 18 deletions.
6 changes: 4 additions & 2 deletions src/AlipayApp/App/Params/Pay/ExtendParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class ExtendParams
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 系统商编号,该参数作为系统商返佣数据提取的依据,请填写系统商签约协议的PID
Expand Down Expand Up @@ -49,6 +51,6 @@ public function toString()
{
return null;
}
return JSONParams::toString();
return $this->traitToString();
}
}
6 changes: 4 additions & 2 deletions src/AlipayApp/FTF/Params/ExtendParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class ExtendParams
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 系统商编号,该参数作为系统商返佣数据提取的依据,请填写系统商签约协议的PID
Expand All @@ -22,6 +24,6 @@ public function toString()
{
return null;
}
return JSONParams::toString();
return $this->traitToString();
}
}
6 changes: 4 additions & 2 deletions src/AlipayApp/Page/Params/GoodsDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class GoodsDetail
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 在支付时,可点击商品名称跳转到该地址
Expand All @@ -22,6 +24,6 @@ public function toString()
{
return null;
}
return JSONParams::toString();
return $this->traitToString();
}
}
6 changes: 4 additions & 2 deletions src/AlipayApp/Page/Params/Pay/ExtendParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class ExtendParams
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 系统商编号,该参数作为系统商返佣数据提取的依据,请填写系统商签约协议的PID
Expand All @@ -34,6 +36,6 @@ public function toString()
{
return null;
}
return JSONParams::toString();
return $this->traitToString();
}
}
6 changes: 4 additions & 2 deletions src/AlipayApp/Wap/Params/Pay/ExtendParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class ExtendParams
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 系统商编号,该参数作为系统商返佣数据提取的依据,请填写系统商签约协议的PID
Expand Down Expand Up @@ -49,6 +51,6 @@ public function toString()
{
return null;
}
return JSONParams::toString();
return $this->traitToString();
}
}
6 changes: 4 additions & 2 deletions src/Weixin/JSAPI/Params/SceneInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
*/
class SceneInfo
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 门店唯一标识
Expand Down Expand Up @@ -43,7 +45,7 @@ public function toString()
}
else
{
return JSONParams::toString();
return $this->traitToString();
}
}
}
6 changes: 4 additions & 2 deletions src/Weixin/Micropay/Params/SceneInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
*/
class SceneInfo
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 门店唯一标识
Expand Down Expand Up @@ -43,7 +45,7 @@ public function toString()
}
else
{
return JSONParams::toString();
return $this->traitToString();
}
}
}
6 changes: 4 additions & 2 deletions src/Weixin/Native/Params/SceneInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
*/
class SceneInfo
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 门店唯一标识
Expand Down Expand Up @@ -43,7 +45,7 @@ public function toString()
}
else
{
return JSONParams::toString();
return $this->traitToString();
}
}
}
6 changes: 4 additions & 2 deletions src/Weixin/Params/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
*/
class Detail
{
use JSONParams;
use JSONParams{
toString as private traitToString;
}

/**
* 订单原价
Expand Down Expand Up @@ -39,7 +41,7 @@ public function toString()
}
else
{
return JSONParams::toString();
return $this->traitToString();
}
}
}

0 comments on commit 8ceef75

Please sign in to comment.