Update PHPStan config

This commit is contained in:
shalvah
2019-08-25 23:03:07 +01:00
parent a9ac3dcbc9
commit 9b55aedcf6
5 changed files with 6 additions and 6 deletions

View File

@@ -48,7 +48,7 @@
}
},
"scripts": {
"lint": "phpstan analyse -c phpstan.neon src",
"lint": "phpstan analyse src",
"test": "phpunit --stop-on-failure",
"test-ci": "phpunit --coverage-clover=coverage.xml"
},

View File

@@ -28,7 +28,7 @@ class ResponseCallStrategy
{
$rulesToApply = $routeProps['rules']['response_calls'] ?? [];
if (! $this->shouldMakeApiCall($route, $rulesToApply)) {
return;
return null;
}
$this->configureEnvironment($rulesToApply);

View File

@@ -40,7 +40,7 @@ class ResponseFileStrategy
);
if (empty($responseFileTags)) {
return;
return null;
}
return array_map(function (Tag $responseFileTag) {

View File

@@ -39,7 +39,7 @@ class ResponseTagStrategy
);
if (empty($responseTags)) {
return;
return null;
}
return array_map(function (Tag $responseTag) {

View File

@@ -39,7 +39,7 @@ class TransformerTagsStrategy
{
try {
if (empty($transformerTag = $this->getTransformerTag($tags))) {
return;
return null;
}
$transformer = $this->getTransformerClass($transformerTag);
@@ -58,7 +58,7 @@ class TransformerTagsStrategy
return [response($fractal->createData($resource)->toJson())];
} catch (\Exception $e) {
return;
return null;
}
}