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

Update nl_NL.csv #1

Merged
merged 1 commit into from
Jan 15, 2017
Merged

Update nl_NL.csv #1

merged 1 commit into from
Jan 15, 2017

Conversation

jstolp
Copy link
Contributor

@jstolp jstolp commented Jan 15, 2017

postNL to PostNL

postNL to PostNL
@reindert-vetter reindert-vetter merged commit 01cbaed into myparcelnl:master Jan 15, 2017
@phagens phagens mentioned this pull request Jun 22, 2020
MatthijsBreed referenced this pull request in MatthijsBreed/magento Nov 3, 2021
When Magento MSI is not enabled, the `bin/magento setup:di:command` fails on `Model/Source/SourceItem.php`
This is because the objectmanager cannot instantiate the `Magento\InventoryApi\Api\SourceItemRepositoryInterface`:
```
Area configuration aggregation... 5/9 [===============>------------]  55% 18 secs 334.0 MiB
In ClassReader.php line 45:
                                                                                                                                                                                                           
  Impossible to process constructor argument Parameter #1 [ <required> Magento\InventoryApi\Api\SourceItemRepositoryInterface $sourceItemRepository ] of MyParcelNL\Magento\Model\Source\SourceItem class  
                                                                                                                                                                                                           

In ClassReader.php line 34:
                                                                               
  Class Magento\InventoryApi\Api\SourceItemRepositoryInterface does not exist  
                                                                               
```

This PR applies the same fix as PR myparcelnl#577 to the SourceItem class itself
peterjaap added a commit to peterjaap/magento that referenced this pull request Jan 24, 2023
Fix proof:

```
php > $data['date'] = null;
php > $dateTime = date('d-m-Y H:i', strtotime($data['date']));
PHP Deprecated:  strtotime(): Passing null to parameter myparcelnl#1 ($datetime) of type string is deprecated in php shell code on line 1
PHP Stack trace:
PHP   1. {main}() php shell code:0
PHP   2. strtotime($datetime = NULL) php shell code:1

Deprecated: strtotime(): Passing null to parameter myparcelnl#1 ($datetime) of type string is deprecated in php shell code on line 1

Call Stack:
   32.4666     603888   1. {main}() php shell code:0
   32.4666     603888   2. strtotime($datetime = NULL) php shell code:1

php > $dateTime = date('d-m-Y H:i', strtotime($data['date'] ?? ''));
php > var_dump($dateTime);
php shell code:1:
string(16) "01-01-1970 00:00"
```
peterjaap added a commit to peterjaap/magento that referenced this pull request Jan 25, 2023
We're getting this error a lot;

```
MyParcelNL\Magento\Plugin\Magento\Sales\Api\Data\OrderExtension::useEntityId(): Argument myparcelnl#1 ($entityId) must be of type int, string given, called in /data/web/releases/20230124154227/vendor/myparcelnl/magento/Plugin/Magento/Sales/Api/Data/OrderExtension.php on line 65
```

`useEntityId` expects an int; `private function useEntityId(int $entityId): array`

However, you're exploding a string and not casting it;

```
$explodePath = explode('/', $path ?? '');
[$searchColumn, $searchValue] = $this->useEntityId(end($explodePath));
```

So I added `(int)` to cast the numeric value to an int.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants