Skip to content

Commit

Permalink
Php8.1 fix (#10)
Browse files Browse the repository at this point in the history
* - fix database xml schema
* - fix php8.1
  • Loading branch information
1coro authored Jun 8, 2022
1 parent 5392a4c commit f110a47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Extensions/Iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,31 @@ public function set($key, $value)
return $this->array[$key] = $value;
}

#[\ReturnTypeWillChange]
public function rewind()
{
reset($this->array);
}

#[\ReturnTypeWillChange]
public function current()
{
return current($this->array);
}

#[\ReturnTypeWillChange]
public function key()
{
return key($this->array);
}

#[\ReturnTypeWillChange]
public function next()
{
next($this->array);
}

#[\ReturnTypeWillChange]
public function valid()
{
return key($this->array) !== null;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "SMS notification & SMS marketing module for Magento. Free SMS module for Magento with advanced features and user friendly design.",
"homepage": "http://www.mage-sms.com",
"type": "magento2-module",
"version": "3.0.9",
"version": "3.0.10",
"license": [
"BSD-3.0"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<column xsi:type="varchar" name="scope" nullable="false" length="50" default="main"/>
<column xsi:type="varchar" name="key" nullable="false" length="50"/>
<column xsi:type="varchar" name="type" nullable="false" length="50" default="text"/>
<column xsi:type="text" name="value" nullable="false" default=""/>
<column xsi:type="text" name="value" nullable="false"/>
<column xsi:type="bigint" name="datetime" nullable="false" />
<column xsi:type="int" name="order" nullable="false" default="0" />
<column xsi:type="varchar" name="synchronize_flag" nullable="false" length="50" default="none" />
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="BulkGate_Magesms" setup_version="3.0.9">
<module name="BulkGate_Magesms" setup_version="3.0.10">
<sequence>
<module name="Magento_Backend" />
</sequence>
Expand Down

0 comments on commit f110a47

Please sign in to comment.