Skip to content

Commit

Permalink
DHLGW-733: update required phpstan version and fix inspection issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mam08ixo committed Jan 16, 2020
1 parent f603b8c commit 2f69a46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"require-dev": {
"ext-simplexml": "*",
"phpunit/phpunit": "^6.0.0",
"phpstan/phpstan": "^0.11.4",
"phpstan/phpstan": "^0.9.0",
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
ignoreErrors:
- "#Access to an undefined property SoapFault*#"
2 changes: 1 addition & 1 deletion src/Model/DeleteShipment/ResponseType/DeletionState.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getShipmentNumber(): string
}

/**
* @return Statusinformation
* @return StatusInformation
*/
public function getStatus(): StatusInformation
{
Expand Down
4 changes: 2 additions & 2 deletions src/Soap/ClientDecorator/LoggerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function __construct(AbstractClient $client, \SoapClient $soapClient, Log
*/
private function logCommunication(\Closure $performRequest)
{
$logLevel = LogLevel::INFO;

try {
/** @var CreateShipmentOrderResponse|DeleteShipmentOrderResponse $response */
$response = $performRequest();
Expand All @@ -80,8 +82,6 @@ private function logCommunication(\Closure $performRequest)
} elseif ($response->getStatus()->getStatusText() === 'Weak validation error occured.') {
// weak validation errors contained in response.
$logLevel = LogLevel::WARNING;
} else {
$logLevel = LogLevel::INFO;
}

return $response;
Expand Down

0 comments on commit 2f69a46

Please sign in to comment.