Skip to content

Commit 5325fed

Browse files
resolved the psalm errors
1 parent ec203ce commit 5325fed

243 files changed

Lines changed: 278 additions & 268 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"phpunit/phpunit": "^9.6",
4848
"sebastian/comparator": "^4.0.5",
4949
"symfony/cache": "^6.4.9",
50-
"vimeo/psalm": "^5.20"
50+
"vimeo/psalm": "^6.14.0"
5151
},
5252
"autoload": {
5353
"psr-4": {

psalm.xml.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
<DeprecatedInterface errorLevel="info" />
5555

5656
<RiskyTruthyFalsyComparison errorLevel="info" />
57+
58+
<MissingOverrideAttribute errorLevel="info" />
59+
<PossiblyUnusedMethod errorLevel="info" />
60+
<PossiblyUnusedReturnValue errorLevel="info" />
61+
<PossiblyUnusedParam errorLevel="info" />
62+
<UnusedProperty errorLevel="info" />
63+
<UnusedClass errorLevel="info" />
64+
<UnusedVariable errorLevel="info" />
65+
<UnusedDocblockParam errorLevel="info" />
66+
<UnnecessaryVarAnnotation errorLevel="info" />
67+
<PossiblyUnusedProperty errorLevel="info" />
68+
<UnusedParam errorLevel="info" />
5769

5870
</issueHandlers>
5971
</psalm>

src/Api/ApigeeX/Controller/AcceptedRatePlanController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function acceptRatePlan(RatePlanInterface $ratePlan): AcceptedRatePlanInt
8989

9090
$tmp = json_decode($payload, true);
9191

92-
$payload = json_encode($tmp);
92+
$payload = (string) json_encode($tmp);
9393

9494
$response = $this->client->post($this->getBaseEndpointUri(), $payload);
9595
$this->getEntitySerializer()->setPropertiesFromResponse($response, $acceptedRatePlan);

src/Api/ApigeeX/Controller/ApiProductController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
use Apigee\Edge\Serializer\EntitySerializerInterface;
3131
use Psr\Http\Message\UriInterface;
3232

33-
class ApiProductController extends OrganizationAwareEntityController implements ApiProductControllerInterface
33+
final class ApiProductController extends OrganizationAwareEntityController implements ApiProductControllerInterface
3434
{
3535
use EntityCreateOperationControllerTrait;
3636
use EntityDeleteOperationControllerTrait;
@@ -134,7 +134,7 @@ private function getEligibleProducts(string $type, string $entityId): array
134134
}
135135
}
136136

137-
$current_ms = substr((string) (microtime(true) * 1000), 0);
137+
$current_ms = substr((string) ((int) (microtime(true) * 1000.0)), 0);
138138

139139
foreach ($this->getAvailablexApiProducts($type, $entityId, true) as $item) {
140140
// Create a new rate plan controller.

src/Api/ApigeeX/Controller/AppController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Class AppController.
3434
*/
35-
class AppController extends PaginatedEntityController implements AppControllerInterface
35+
final class AppController extends PaginatedEntityController implements AppControllerInterface
3636
{
3737
use EntityListingControllerTrait;
3838
use PaginationHelperTrait {

src/Api/ApigeeX/Controller/AppGroupAppController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* Class AppGroupAppController.
3232
*/
33-
class AppGroupAppController extends AppByOwnerController implements AppGroupAppControllerInterface
33+
final class AppGroupAppController extends AppByOwnerController implements AppGroupAppControllerInterface
3434
{
3535
use AppGroupAwareControllerTrait;
3636

src/Api/ApigeeX/Controller/AppGroupAppCredentialController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Class AppGroupAppCredentialController.
2929
*/
30-
class AppGroupAppCredentialController extends CompanyAppCredentialController
30+
final class AppGroupAppCredentialController extends CompanyAppCredentialController
3131
{
3232
/** @var string appgroup name. */
3333
protected $appGroup;

src/Api/ApigeeX/Controller/AppGroupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* Class AppGroupController.
3535
*/
36-
class AppGroupController extends PaginatedEntityController implements AppGroupControllerInterface
36+
final class AppGroupController extends PaginatedEntityController implements AppGroupControllerInterface
3737
{
3838
use AttributesAwareEntityControllerTrait;
3939
use EntityCrudOperationsControllerTrait;

src/Api/ApigeeX/Controller/AppGroupMembersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* Allows to manage appgroup memberships.
3232
*/
33-
class AppGroupMembersController extends AbstractController implements AppGroupMembersControllerInterface
33+
final class AppGroupMembersController extends AbstractController implements AppGroupMembersControllerInterface
3434
{
3535
use AppGroupAwareControllerTrait;
3636
use OrganizationAwareControllerTrait;

src/Api/ApigeeX/Controller/DeveloperAcceptedRatePlanController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Apigee\Edge\Serializer\EntitySerializerInterface;
2626
use Psr\Http\Message\UriInterface;
2727

28-
class DeveloperAcceptedRatePlanController extends AcceptedRatePlanController
28+
final class DeveloperAcceptedRatePlanController extends AcceptedRatePlanController
2929
{
3030
/**
3131
* UUID or email address of a developer.

0 commit comments

Comments
 (0)