Skip to content

Commit

Permalink
Merge pull request #3 from magento-gl/php84_deprication_fix
Browse files Browse the repository at this point in the history
Php84 deprication fix
  • Loading branch information
glo71317 authored Dec 18, 2024
2 parents 475addb + 1536266 commit a7d7c38
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Db2/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Zend_Db_Adapter_Db2_Exception extends Zend_Db_Adapter_Exception
protected $code = '00000';
protected $message = 'unknown exception';

function __construct($message = 'unknown exception', $code = '00000', Exception $e = null)
function __construct($message = 'unknown exception', $code = '00000', ?Exception $e = null)
{
parent::__construct($message, $code, $e);
}
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Zend_Db_Adapter_Exception extends Zend_Db_Exception
{
protected $_chainedException = null;

public function __construct($message = '', $code = 0, Exception $e = null)
public function __construct($message = '', $code = 0, ?Exception $e = null)
{
if ($e && (0 === $code)) {
$code = $e->getCode();
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function bindValue($parameter, $value, $type = null)
* @param array $params OPTIONAL Values to bind to parameter placeholders.
* @return bool
*/
public function execute(array $params = null)
public function execute(?array $params = null)
{
/*
* Simple case - no query profiler to manage.
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement/Db2.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function errorInfo()
* @return bool
* @throws Zend_Db_Statement_Db2_Exception
*/
public function _execute(array $params = null)
public function _execute(?array $params = null)
{
if (!$this->_stmt) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement/Mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function errorInfo()
* @return bool
* @throws Zend_Db_Statement_Mysqli_Exception
*/
public function _execute(array $params = null)
public function _execute(?array $params = null)
{
if (!$this->_stmt) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement/Oracle.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function errorInfo()
* @return bool
* @throws Zend_Db_Statement_Exception
*/
public function _execute(array $params = null)
public function _execute(?array $params = null)
{
$connection = $this->_adapter->getConnection();

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement/Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function errorInfo()
* @return bool
* @throws Zend_Db_Statement_Exception
*/
public function _execute(array $params = null)
public function _execute(?array $params = null)
{
try {
if ($params !== null) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Statement/Sqlsrv.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function errorInfo()
* @return bool
* @throws Zend_Db_Statement_Exception
*/
public function _execute(array $params = null)
public function _execute(?array $params = null)
{
$connection = $this->_adapter->getConnection();
if (!$this->_stmt) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Table/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ protected function _fetch(Zend_Db_Table_Select $select)
* @throws Zend_Db_Table_Row_Exception
* @return Zend_Db_Table_Abstract
*/
public static function getTableFromString($tableName, Zend_Db_Table_Abstract $referenceTable = null)
public static function getTableFromString($tableName, ?Zend_Db_Table_Abstract $referenceTable = null)
{
if ($referenceTable instanceof Zend_Db_Table_Abstract) {
$tableDefinition = $referenceTable->getDefinition();
Expand Down
8 changes: 4 additions & 4 deletions library/Zend/Db/Table/Row/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function getTable()
* @return boolean
* @throws Zend_Db_Table_Row_Exception
*/
public function setTable(Zend_Db_Table_Abstract $table = null)
public function setTable(?Zend_Db_Table_Abstract $table = null)
{
if ($table == null) {
$this->_table = null;
Expand Down Expand Up @@ -875,7 +875,7 @@ protected function _prepareReference(Zend_Db_Table_Abstract $dependentTable, Zen
* @return Zend_Db_Table_Rowset_Abstract Query result from $dependentTable
* @throws Zend_Db_Table_Row_Exception If $dependentTable is not a table or is not loadable.
*/
public function findDependentRowset($dependentTable, $ruleKey = null, Zend_Db_Table_Select $select = null)
public function findDependentRowset($dependentTable, $ruleKey = null, ?Zend_Db_Table_Select $select = null)
{
$db = $this->_getTable()->getAdapter();

Expand Down Expand Up @@ -931,7 +931,7 @@ public function findDependentRowset($dependentTable, $ruleKey = null, Zend_Db_Ta
* @return Zend_Db_Table_Row_Abstract Query result from $parentTable
* @throws Zend_Db_Table_Row_Exception If $parentTable is not a table or is not loadable.
*/
public function findParentRow($parentTable, $ruleKey = null, Zend_Db_Table_Select $select = null)
public function findParentRow($parentTable, $ruleKey = null, ?Zend_Db_Table_Select $select = null)
{
$db = $this->_getTable()->getAdapter();

Expand Down Expand Up @@ -999,7 +999,7 @@ public function findParentRow($parentTable, $ruleKey = null, Zend_Db_Table_Selec
* @throws Zend_Db_Table_Row_Exception If $matchTable or $intersectionTable is not a table class or is not loadable.
*/
public function findManyToManyRowset($matchTable, $intersectionTable, $callerRefRule = null,
$matchRefRule = null, Zend_Db_Table_Select $select = null)
$matchRefRule = null, ?Zend_Db_Table_Select $select = null)
{
$db = $this->_getTable()->getAdapter();

Expand Down

0 comments on commit a7d7c38

Please sign in to comment.