Skip to content

Commit

Permalink
Fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rtalvarez committed Oct 3, 2023
1 parent b7d408b commit 7385938
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .phpstan/baseline.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Call to function is_string\\(\\) with stdClass will always evaluate to false\\.$#"
count: 2
path: ../src/Bigcommerce/Api/Client.php

-
message: "#^Method Bigcommerce\\\\Api\\\\Client\\:\\:createCoupon\\(\\) has parameter \\$object with no type specified\\.$#"
count: 1
Expand Down Expand Up @@ -500,11 +495,6 @@ parameters:
count: 1
path: ../src/Bigcommerce/Api/Filter.php

-
message: "#^Method Bigcommerce\\\\Api\\\\Filter\\:\\:__set\\(\\) has no return type specified\\.$#"
count: 1
path: ../src/Bigcommerce/Api/Filter.php

-
message: "#^Method Bigcommerce\\\\Api\\\\Filter\\:\\:__set\\(\\) has parameter \\$parameter with no type specified\\.$#"
count: 1
Expand Down
8 changes: 4 additions & 4 deletions src/Bigcommerce/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ private static function mapCollectionObject($object)
* Map a single object to a resource class.
*
* @param string $resource name of the resource class
* @param \stdClass $object
* @return Resource
* @param \stdClass|boolean|string $object
* @return bool|\stdClass|string
*/
private static function mapResource($resource, $object)
{
Expand All @@ -415,8 +415,8 @@ private static function mapResource($resource, $object)
/**
* Map object representing a count to an integer value.
*
* @param \stdClass $object
* @return int
* @param \stdClass|boolean|string $object
* @return int|boolean
*/
private static function mapCount($object)
{
Expand Down

0 comments on commit 7385938

Please sign in to comment.