-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from snowio/fix/update-version
Update for Magento 2.4 and PHP 7.4
- Loading branch information
Showing
13 changed files
with
108 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# snowio-extended-sales-repositories | ||
Magento 2 module that exposes additional payment attributes as AdditionalInformationFields in ExtendedAttributes | ||
|
||
### Magento Versions | ||
- <= 2.3.x use 2.x tags | ||
- >= 2.4.x use master |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"> | ||
<table name="snowio_order_relateddata" resource="default" engine="innodb" comment="Persist Key/Value information to reference to an Order"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="varchar" name="order_increment_id" nullable="false" length="50" comment="Order Increment Id"/> | ||
<column xsi:type="varchar" name="code" nullable="false" length="255" comment="Key for the Data"/> | ||
<column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value for the Data"/> | ||
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/> | ||
<column xsi:type="timestamp" name="updated_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/> | ||
<constraint xsi:type="primary" referenceId="PRIMARY"> | ||
<column name="id"/> | ||
<column name="id"/> | ||
</constraint> | ||
<constraint xsi:type="unique" referenceId="SNOWIO_ORDER_RELATEDDATA_ORDER_INCREMENT_ID_CODE"> | ||
<column name="order_increment_id"/> | ||
<column name="code"/> | ||
</constraint> | ||
<index referenceId="SNOWIO_ORDER_RELATEDDATA_ORDER_INCREMENT_ID" indexType="btree"> | ||
<column name="order_increment_id"/> | ||
</index> | ||
</table> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"snowio_order_relateddata": { | ||
"column": { | ||
"id": true, | ||
"order_increment_id": true, | ||
"code": true, | ||
"value": true, | ||
"created_at": true, | ||
"updated_at": true | ||
}, | ||
"index": { | ||
"SNOWIO_ORDER_RELATEDDATA_ORDER_INCREMENT_ID": true | ||
}, | ||
"constraint": { | ||
"PRIMARY": true, | ||
"SNOWIO_ORDER_RELATEDDATA_ORDER_INCREMENT_ID_CODE": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Rector\Core\Configuration\Option; | ||
use Rector\Php74\Rector\Property\TypedPropertyRector; | ||
use Rector\Set\ValueObject\SetList; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$parameters = $containerConfigurator->parameters(); | ||
$parameters->set(Option::PATHS, [ | ||
__DIR__ . '/Api', | ||
__DIR__ . '/Model', | ||
__DIR__ . '/Plugin', | ||
__DIR__ . '/Setup' | ||
]); | ||
$parameters->set(Option::SETS, [ | ||
SetList::PHPSTAN, | ||
SetList::DEAD_CODE, | ||
SetList::EARLY_RETURN, | ||
SetList::CODE_QUALITY, | ||
SetList::PHP_73, | ||
SetList::PHP_74, | ||
]); | ||
$services = $containerConfigurator->services(); | ||
$services->set(TypedPropertyRector::class); | ||
}; | ||
|