Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC_Queryインスタンスの取得方法の修正 #191

Conversation

shutta-
Copy link

@shutta- shutta- commented Apr 26, 2018

getSingletonInstanceメソッドを使用していない古い取得方法の記述が残っているのを修正。

getSingletonInstanceメソッドを使用していない古い取得方法の記述が残っているのを修正。
@@ -216,7 +216,7 @@ public function lfCheckError(&$objFormParam)
$objError->doFunc(array('発行日', 'year', 'month', 'day'), array('CHECK_DATE'));
$arrErr = array_merge($arrErr, $objError->arrErr);

$objQuery = new SC_Query();
$objQuery =& SC_Query_Ex::getSingletonInstance();
Copy link
Contributor

@nanasess nanasess Apr 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

& 要らないと思います

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

その他の箇所が大半&付きだったので、それに倣っただけなんです。。。
不要であれば、全体で統一することも考えた方が良いですね。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP4 時代の名残りですね。。。

@coveralls
Copy link

coveralls commented Apr 26, 2018

Coverage Status

Coverage remained the same at 22.474% when pulling 151c894 on shutta-:fix-incorrect-creating-sc_query-instance into 3fc6ab3 on EC-CUBE:improve/php7.

@chihiro-adachi chihiro-adachi added this to the 2.17.0 milestone Apr 27, 2018
@chihiro-adachi chihiro-adachi merged commit 341dd07 into EC-CUBE:improve/php7 Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants