Comments

Neslee Canil Pinto created an issue. See original summary.

neslee canil pinto’s picture

Status: Active » Needs review
StatusFileSize
new346 bytes
mandclu’s picture

Status: Needs review » Needs work

According to the warnings I'm seeing, all the submodules need the same fix.

suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new2.02 KB

Updated patch as per #3. Please review.

rajesh_jha’s picture

Greetings!
Requesting you to kindly release a new version of this module with Drupal 9 Compatibility as almost the Core Commerce module is already working with Drupal 9.Thanks and regards.

mrpauldriver’s picture

Patch at #4 would not apply

mrpauldriver’s picture

I checked this with Upgrade Status module and quite a lot a work seems to be required. Much more that just changing the core_version_requirement.

CUSTOM PROJECTS
--------------------------------------------------------------------------------
Commerce Stock API
Scanned on Mon, 03/08/2020 - 16:25.

47 warnings found.

web/modules/contrib/commerce_stock/modules/enforcement/tests/src/Functional/Enfo
rcementBrowserTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 15   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/enforcement/tests/src/Functional/Enfo
rcementBrowserTestBase.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 10   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/enforcement/tests/src/Functional/OutO
fStockTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 15   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/enforcement/tests/src/Kernel/Enforcem
entKernelTestBase.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 10   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/field/tests/src/Functional/StockLevel
FieldTestBase.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 13   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/field/tests/src/Functional/StockLevel
FormatterTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 12   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/field/tests/src/Functional/StockLevel
WidgetsTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 16   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/field/tests/src/Kernel/StockLevelTest
.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 22   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/src/Form/PrepareUninsta
llForm.php:
┌────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │                           MESSAGE                            │
├────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Ignore │ 90   │ Call to deprecated method isSubclassOf() of class            │
│        │      │ Drupal\Core\Entity\EntityTypeInterface. Deprecated in        │
│        │      │ drupal:8.3.0 and is removed from drupal:10.0.0. Use          │
│        │      │ Drupal\Core\Entity\EntityTypeInterface::entityClassImplement │
│        │      │ s() instead.                                                 │
│        │      │                                                              │
└────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/Entity
/StockLocationTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 15   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/LocalS
tockServiceTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 19   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/LocalS
tockUpdaterTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 20   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/OrderE
ventTransactionsKernelTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 23   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/OrderE
ventsTransactionsTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 28   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/src/Kernel/StockL
ocationStorageTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 13   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/src/Form/StockConfigForm.php:
┌────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │                           MESSAGE                            │
├────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Ignore │ 63   │ Call to deprecated method isSubclassOf() of class            │
│        │      │ Drupal\Core\Entity\EntityTypeInterface. Deprecated in        │
│        │      │ drupal:8.3.0 and is removed from drupal:10.0.0. Use          │
│        │      │ Drupal\Core\Entity\EntityTypeInterface::entityClassImplement │
│        │      │ s() instead.                                                 │
│        │      │                                                              │
└────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/src/StockAvailabilityChecker.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │ 16   │ Class Drupal\commerce_stock\StockAvailabilityChecker        │
│ manually │      │ implements deprecated interface                             │
│          │      │ Drupal\commerce\AvailabilityCheckerInterface. Deprecated in │
│          │      │ commerce:8.x-2.18 and is removed from commerce:3.x. Use     │
│          │      │ Drupal\commerce_order\AvailabilityCheckerInterface instead. │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/Functional/ProductAdminTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 13   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/Functional/StockBrowserTestBase.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 17   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/Functional/StockServiceTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 12   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/FunctionalJavascript/StockWebDriver
TestBase.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 17   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/Kernel/CommerceStockKernelTestBase.
php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 10   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/tests/src/Kernel/StockServiceManagerTest.php:
┌──────────┬──────┬─────────────────────────────────────────────┐
│  STATUS  │ LINE │                   MESSAGE                   │
├──────────┼──────┼─────────────────────────────────────────────┤
│ Check    │      │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
│ Check    │ 11   │ Class PHPUnit\Framework\TestCase not found. │
│ manually │      │                                             │
└──────────┴──────┴─────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/commerce_stock.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/ui/commerce_stock_ui.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/commerce_stock_local.in
fo.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/modules/commerce_
stock_local_test/commerce_stock_local_test.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/field/commerce_stock_field.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/enforcement/commerce_stock_enforcemen
t.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘




mandclu’s picture

@MrPaulDriver for the errors about PHPUnit\Framework\TestCase being not found, is it possible you were running this without having drupal/core-dev installed?

guy_schneerson’s picture

Thanks, Paul, I think this confirms things are probably ok. If we ignore the tests (as @mandclu was saying is probably an issue with running the tests), we only have two places using the deprecated function isSubclassOf() and that will only get removed in Drupal 10.
@MrPaulDriver can you have a look if the test issue is a setup one and if you can fix that re-run the report and update your comment with the results?

mrpauldriver’s picture

Just circling back round to this, sorry for the delay. Yes, I'll get this tested on against Drupal 8 again.

In the meantime I just found the module is not installable via composer against a Drupal 9 site, prior to patching.

An interim dev release would be a big help so that anyone starting a new commerce site doesn't have to start with 8, patch commerce_stock and then upgrade to 9. Even if it didn't work, at least it could be installed.

danharper’s picture

StatusFileSize
new2.06 KB
new940 bytes

patches above don't apply on latest dev, new patch attached with diff from #4

mrpauldriver’s picture

After patching with #11, two items needing attention remain, together with two others which can be ignored for now. I expect those to ignore relate to Drupal 10 as hinted by Guy at #9.

CUSTOM PROJECTS
--------------------------------------------------------------------------------
Commerce Stock API
Scanned on Fri, 09/18/2020 - 14:55.

2 warnings found.

web/modules/contrib/commerce_stock/modules/local_storage/src/Form/PrepareUninsta
llForm.php:
┌────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │                           MESSAGE                            │
├────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Ignore │ 90   │ Call to deprecated method isSubclassOf() of class            │
│        │      │ Drupal\Core\Entity\EntityTypeInterface. Deprecated in        │
│        │      │ drupal:8.3.0 and is removed from drupal:10.0.0. Use          │
│        │      │ Drupal\Core\Entity\EntityTypeInterface::entityClassImplement │
│        │      │ s() instead.                                                 │
│        │      │                                                              │
└────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/src/Form/StockConfigForm.php:
┌────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │                           MESSAGE                            │
├────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Ignore │ 63   │ Call to deprecated method isSubclassOf() of class            │
│        │      │ Drupal\Core\Entity\EntityTypeInterface. Deprecated in        │
│        │      │ drupal:8.3.0 and is removed from drupal:10.0.0. Use          │
│        │      │ Drupal\Core\Entity\EntityTypeInterface::entityClassImplement │
│        │      │ s() instead.                                                 │
│        │      │                                                              │
└────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/src/StockAvailabilityChecker.php:
┌──────────┬──────┬─────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                           │
├──────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Check    │ 16   │ Class Drupal\commerce_stock\StockAvailabilityChecker        │
│ manually │      │ implements deprecated interface                             │
│          │      │ Drupal\commerce\AvailabilityCheckerInterface. Deprecated in │
│          │      │ commerce:8.x-2.18 and is removed from commerce:3.x. Use     │
│          │      │ Drupal\commerce_order\AvailabilityCheckerInterface instead. │
│          │      │                                                             │
└──────────┴──────┴─────────────────────────────────────────────────────────────┘

web/modules/contrib/commerce_stock/modules/local_storage/tests/modules/commerce_
stock_local_test/commerce_stock_local_test.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │      │ module is compatible with Drupal 9. See                      │
│          │      │ https://drupal.org/node/3070687.                             │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘




mrpauldriver’s picture

StatusFileSize
new3.17 KB

Patch for 2 current items outstanding.

Status: Needs review » Needs work

The last submitted patch, 13: 3123150-13.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

mrpauldriver’s picture

StatusFileSize
new3.17 KB

Try again. Misplaced ; I think.

mrpauldriver’s picture

StatusFileSize
new3.17 KB
mrpauldriver’s picture

StatusFileSize
new3.17 KB
dave kopecek’s picture

Using composer & composer-patches I can apply #17 against a D8 site, however when applied against a D9 site it fails.

This is apparently a chicken-and-egg problem. Composer won't download commerce_stock because the existing dev version requires D8. The patch is what allows D9 compatibility & it hasn't been applied yet. Is there a magic composer command that will fix this? Do we just need to do a non-composer manual install and patch until this issue is resolved?

I know this isn't a problem with #17, but this is my first encounter with this dilemma and google is failing me.

mrpauldriver’s picture

Yes this is a chicken and egg problem because the dev release can not be installed on Drupal 9 with composer. It therefore has to be patched for Drupal 8.9 first.

The latest patch does apply (with D8) and passes checks with Upgrade Status module, however it is currently failing tests here.

That your manual installation for D9 fails, suggests more work is needed.

danharper’s picture

StatusFileSize
new4.51 KB

To test you need to add this to the composer file, this enables composer to download it.
"drupal/core": "9.0.6 as 8.9.6",

I have attached another patch, this does apply using the above in composer and I have tested it with a clean install using commerce 2.x-dev (make sure you didn't already have commerce stock enabled otherwise it breaks)

danharper’s picture

Issue summary: View changes
StatusFileSize
new6.38 KB
dave kopecek’s picture

Thanks @danharper for "drupal/core": "9.0.6 as 8.9.6". That did the trick.

- Patch 20 applies against a 9.0.6 site
- Patch 21 gives error:

Fatal error: Cannot make non static method Drupal\commerce_order\AvailabilityCheckerInterface::check() static in class Drupal\commerce_stock\StockAvailabilityChecker in /var/www/web/modules/contrib/commerce_stock/src/StockAvailabilityChecker.php on line 17

danharper’s picture

StatusFileSize
new6.4 KB
new685 bytes

New patch attached with diff for #21 to this one.

danharper’s picture

StatusFileSize
new4.79 KB
new1.69 KB

New patch to remove some changes below that are in several files.

< -use Symfony\Component\EventDispatcher\Event;
< +use Symfony\Contracts\EventDispatcher\Event;
mrpauldriver’s picture

Patch installs cleanly and passes tests with Upgrade Status module. Now needs verifying on a Drupal 9 installation.

danharper’s picture

Status: Needs work » Needs review

Changing to needs review, I have tested local storage in a very basic way.

mrpauldriver’s picture

Status: Needs review » Reviewed & tested by the community

No problem installing under Drupal 9.0.6 and Commerce 8.x-2.21

The module functionality seems okay, however I only tried a very basic configuration. I suggest if problems are discovered, these could be raised as separate issues.

Marking as RTBC.

agoradesign’s picture

would be nice, if that could get committed soon please incl new release :)

promes’s picture

I would like to start using this module in D9. When will there be a new release?
Thanks for the hard work.

dj12djdjs’s picture

I can also confirm this patch is working on 9.0.6.

guy_schneerson’s picture

Hi, Sorry for the delay. will commit in the next couple of weeks and push a new release.

guy_schneerson’s picture

Status: Reviewed & tested by the community » Fixed

Great work. I will push a new version over the weekend.

guy_schneerson’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.