Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"ext-zlib": "*"
},
"require-dev": {
"phpstan/phpstan": "1.12.1",
"phpstan/phpstan": "^2.1.39",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
"squizlabs/php_codesniffer": "^3.9",
"contributte/qa": "^0.3.2",
Expand Down
17 changes: 6 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ includes:
- phpstan-baseline.neon

parameters:
level: 9
level: 10

checkFunctionNameCase: true
reportUnmatchedIgnoredErrors: true
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Entity/EntityCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function getValues(): array
*/
public function filter(?callable $callback): static
{
return new static(array_filter($this->data, $callback));
return new static(array_filter($this->data, $callback)); // @phpstan-ignore return.type
}

/**
Expand All @@ -212,7 +212,7 @@ public function filter(?callable $callback): static
*/
public function map(callable $callback): static
{
return new static(array_map($callback, $this->data));
return new static(array_map($callback, $this->data)); // @phpstan-ignore return.type
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/addalternativeproduct
*
* @method AddAlternativeProduct setBody(null|array|AddAlternativeProductRequest $entity)
* @method AddAlternativeProduct setBody(null|array<string, mixed>|AddAlternativeProductRequest $entity)
* @method null|AddAlternativeProductRequest getBody()
*/
class AddAlternativeProduct extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/setalternativeproducts
*
* @method SetAlternativeProducts setBody(null|array|SetAlternativeProductsRequest $entity)
* @method SetAlternativeProducts setBody(null|array<string, mixed>|SetAlternativeProductsRequest $entity)
* @method null|SetAlternativeProductsRequest getBody()
*/
class SetAlternativeProducts extends Put
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Articles/CreateArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticle
*
* @method CreateArticle setBody(null|array|CreateArticleRequest $entity)
* @method CreateArticle setBody(null|array<string, mixed>|CreateArticleRequest $entity)
* @method null|CreateArticleRequest getBody()
*/
class CreateArticle extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Articles/CreateArticleSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticlesection
*
* @method CreateArticleSection setBody(null|array|CreateArticleSectionRequest $entity)
* @method CreateArticleSection setBody(null|array<string, mixed>|CreateArticleSectionRequest $entity)
* @method null|CreateArticleSectionRequest getBody()
*/
class CreateArticleSection extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Articles/UpdateArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticle
*
* @method UpdateArticle setBody(null|array|UpdateArticleRequest $entity)
* @method UpdateArticle setBody(null|array<string, mixed>|UpdateArticleRequest $entity)
* @method null|UpdateArticleRequest getBody()
*/
class UpdateArticle extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Articles/UpdateArticleSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticlesection
*
* @method UpdateArticleSection setBody(null|array|UpdateArticleSectionRequest $entity)
* @method UpdateArticleSection setBody(null|array<string, mixed>|UpdateArticleSectionRequest $entity)
* @method null|UpdateArticleSectionRequest getBody()
*/
class UpdateArticleSection extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Brands/CreateBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrand
*
* @method CreateBrand setBody(null|array|CreateBrandRequest $entity)
* @method CreateBrand setBody(null|array<string, mixed>|CreateBrandRequest $entity)
* @method null|CreateBrandRequest getBody()
*/
class CreateBrand extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Brands/CreateBrandBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrandbatch
*
* @method CreateBrandBatch setBody(null|array|CreateBrandBatchRequest $entity)
* @method CreateBrandBatch setBody(null|array<string, mixed>|CreateBrandBatchRequest $entity)
* @method null|CreateBrandBatchRequest getBody()
*/
class CreateBrandBatch extends Post implements AsyncEndpoint
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Brands/UpdateBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/updatebrand
*
* @method UpdateBrand setBody(null|array|UpdateBrandRequest $entity)
* @method UpdateBrand setBody(null|array<string, mixed>|UpdateBrandRequest $entity)
* @method null|UpdateBrandRequest getBody()
*/
class UpdateBrand extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Categories/CreateProductCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/createproductcategory
*
* @method CreateProductCategory setBody(null|array|CreateProductCategoryRequest $entity)
* @method CreateProductCategory setBody(null|array<string, mixed>|CreateProductCategoryRequest $entity)
* @method null|CreateProductCategoryRequest getBody()
*/
class CreateProductCategory extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updatecategoryproductsprioritybatch
*
* @method UpdateCategoryProductsPriorityBatch setBody(null|array|UpdateCategoryProductsPriorityBatchRequest $entity)
* @method UpdateCategoryProductsPriorityBatch setBody(null|array<string, mixed>|UpdateCategoryProductsPriorityBatchRequest $entity)
* @method null|UpdateCategoryProductsPriorityBatchRequest getBody()
*/
class UpdateCategoryProductsPriorityBatch extends Patch implements AsyncEndpoint
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Categories/UpdateProductCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategory
*
* @method UpdateProductCategory setBody(null|array|UpdateProductCategoryRequest $entity)
* @method UpdateProductCategory setBody(null|array<string, mixed>|UpdateProductCategoryRequest $entity)
* @method null|UpdateProductCategoryRequest getBody()
*/
class UpdateProductCategory extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Categories/UpdateProductCategoryBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategorybatch
*
* @method UpdateProductCategoryBatch setBody(null|array|UpdateProductCategoryBatchRequest $entity)
* @method UpdateProductCategoryBatch setBody(null|array<string, mixed>|UpdateProductCategoryBatchRequest $entity)
* @method null|UpdateProductCategoryBatchRequest getBody()
*/
class UpdateProductCategoryBatch extends Patch implements AsyncEndpoint
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Categories/UpdateProductOrderInCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductorderincategory
*
* @method UpdateProductOrderInCategory setBody(null|array|UpdateProductOrderInCategoryRequest $entity)
* @method UpdateProductOrderInCategory setBody(null|array<string, mixed>|UpdateProductOrderInCategoryRequest $entity)
* @method null|UpdateProductOrderInCategoryRequest getBody()
*/
class UpdateProductOrderInCategory extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/createconsumptiontax
*
* @method CreateConsumptionTax setBody(null|array|CreateConsumptionTaxRequest $entity)
* @method CreateConsumptionTax setBody(null|array<string, mixed>|CreateConsumptionTaxRequest $entity)
* @method null|CreateConsumptionTaxRequest getBody()
*/
class CreateConsumptionTax extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/updateconsumptiontax
*
* @method UpdateConsumptionTax setBody(null|array|UpdateConsumptionTaxRequest $entity)
* @method UpdateConsumptionTax setBody(null|array<string, mixed>|UpdateConsumptionTaxRequest $entity)
* @method null|UpdateConsumptionTaxRequest getBody()
*/
class UpdateConsumptionTax extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefrominvoice
*
* @method CreateCreditNoteFromInvoice setBody(null|array|CreateCreditNoteFromInvoiceRequest $entity)
* @method CreateCreditNoteFromInvoice setBody(null|array<string, mixed>|CreateCreditNoteFromInvoiceRequest $entity)
* @method null|CreateCreditNoteFromInvoiceRequest getBody()
*/
class CreateCreditNoteFromInvoice extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefromproofofpayment
*
* @method CreateCreditNoteFromProofOfPayment setBody(null|array|CreateCreditNoteFromProofOfPaymentRequest $entity)
* @method CreateCreditNoteFromProofOfPayment setBody(null|array<string, mixed>|CreateCreditNoteFromProofOfPaymentRequest $entity)
* @method null|CreateCreditNoteFromProofOfPaymentRequest getBody()
*/
class CreateCreditNoteFromProofOfPayment extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CreditNotes/CreateCreditNoteItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnoteitem
*
* @method CreateCreditNoteItem setBody(null|array|CreateCreditNoteItemRequest $entity)
* @method CreateCreditNoteItem setBody(null|array<string, mixed>|CreateCreditNoteItemRequest $entity)
* @method null|CreateCreditNoteItemRequest getBody()
*/
class CreateCreditNoteItem extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CreditNotes/UpdateCreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnote
*
* @method UpdateCreditNote setBody(null|array|UpdateCreditNoteRequest $entity)
* @method UpdateCreditNote setBody(null|array<string, mixed>|UpdateCreditNoteRequest $entity)
* @method null|UpdateCreditNoteRequest getBody()
*/
class UpdateCreditNote extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CreditNotes/UpdateCreditNoteItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnoteitem
*
* @method UpdateCreditNoteItem setBody(null|array|UpdateCreditNoteItemRequest $entity)
* @method UpdateCreditNoteItem setBody(null|array<string, mixed>|UpdateCreditNoteItemRequest $entity)
* @method null|UpdateCreditNoteItemRequest getBody()
*/
class UpdateCreditNoteItem extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CustomerAccounts/CreateCustomerAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/createcustomeraccount
*
* @method CreateCustomerAccount setBody(null|array|CreateCustomerAccountRequest $entity)
* @method CreateCustomerAccount setBody(null|array<string, mixed>|CreateCustomerAccountRequest $entity)
* @method null|CreateCustomerAccountRequest getBody()
*/
class CreateCustomerAccount extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/updatecustomeraccount
*
* @method UpdateCustomerAccount setBody(null|array|UpdateCustomerAccountRequest $entity)
* @method UpdateCustomerAccount setBody(null|array<string, mixed>|UpdateCustomerAccountRequest $entity)
* @method null|UpdateCustomerAccountRequest getBody()
*/
class UpdateCustomerAccount extends Patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/createdeliveryaddress
*
* @method CreateDeliveryAddress setBody(null|array|CreateDeliveryAddressRequest $entity)
* @method CreateDeliveryAddress setBody(null|array<string, mixed>|CreateDeliveryAddressRequest $entity)
* @method null|CreateDeliveryAddressRequest getBody()
*/
class CreateDeliveryAddress extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/updatecustomerdeliveryaddress
*
* @method UpdateCustomerDeliveryAddress setBody(null|array|UpdateCustomerDeliveryAddressRequest $entity)
* @method UpdateCustomerDeliveryAddress setBody(null|array<string, mixed>|UpdateCustomerDeliveryAddressRequest $entity)
* @method null|UpdateCustomerDeliveryAddressRequest getBody()
*/
class UpdateCustomerDeliveryAddress extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CustomerRemarks/CreateCustomerRemark.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/createcustomerremark
*
* @method CreateCustomerRemark setBody(null|array|CreateCustomerRemarkRequest $entity)
* @method CreateCustomerRemark setBody(null|array<string, mixed>|CreateCustomerRemarkRequest $entity)
* @method null|CreateCustomerRemarkRequest getBody()
*/
class CreateCustomerRemark extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/updatecustomerremark
*
* @method UpdateCustomerRemark setBody(null|array|UpdateCustomerRemarkRequest $entity)
* @method UpdateCustomerRemark setBody(null|array<string, mixed>|UpdateCustomerRemarkRequest $entity)
* @method null|UpdateCustomerRemarkRequest getBody()
*/
class UpdateCustomerRemark extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Customers/CreateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/createcustomer
*
* @method CreateCustomer setBody(null|array|CreateCustomerRequest $entity)
* @method CreateCustomer setBody(null|array<string, mixed>|CreateCustomerRequest $entity)
* @method null|CreateCustomerRequest getBody()
*/
class CreateCustomer extends Post
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/Customers/UpdateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/updatecustomer
*
* @method UpdateCustomer setBody(null|array|UpdateCustomerRequest $entity)
* @method UpdateCustomer setBody(null|array<string, mixed>|UpdateCustomerRequest $entity)
* @method null|UpdateCustomerRequest getBody()
*/
class UpdateCustomer extends Patch
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/DeliveryNotes/DeliveryNoteFromOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/deliverynotefromorder
*
* @method DeliveryNoteFromOrder setBody(null|array|DeliveryNoteFromOrderRequest $entity)
* @method DeliveryNoteFromOrder setBody(null|array<string, mixed>|DeliveryNoteFromOrderRequest $entity)
* @method null|DeliveryNoteFromOrderRequest getBody()
*/
class DeliveryNoteFromOrder extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/bulkdeletediscountcoupons
*
* @method BulkDeleteDiscountCoupons setBody(null|array|BulkDeleteDiscountCouponsRequest $entity)
* @method BulkDeleteDiscountCoupons setBody(null|array<string, mixed>|BulkDeleteDiscountCouponsRequest $entity)
* @method null|BulkDeleteDiscountCouponsRequest getBody()
*/
class BulkDeleteDiscountCoupons extends Delete
Expand Down
2 changes: 1 addition & 1 deletion src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcoupons
*
* @method CreateDiscountCoupons setBody(null|array|CreateDiscountCouponsRequest $entity)
* @method CreateDiscountCoupons setBody(null|array<string, mixed>|CreateDiscountCouponsRequest $entity)
* @method null|CreateDiscountCouponsRequest getBody()
*/
class CreateDiscountCoupons extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponsset
*
* @method CreateDiscountCouponsSet setBody(null|array|CreateDiscountCouponsSetRequest $entity)
* @method CreateDiscountCouponsSet setBody(null|array<string, mixed>|CreateDiscountCouponsSetRequest $entity)
* @method null|CreateDiscountCouponsSetRequest getBody()
*/
class CreateDiscountCouponsSet extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponstemplate
*
* @method CreateDiscountCouponsTemplate setBody(null|array|CreateDiscountCouponsTemplateRequest $entity)
* @method CreateDiscountCouponsTemplate setBody(null|array<string, mixed>|CreateDiscountCouponsTemplateRequest $entity)
* @method null|CreateDiscountCouponsTemplateRequest getBody()
*/
class CreateDiscountCouponsTemplate extends Post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/updatediscountcouponsusage
*
* @method UpdateDiscountCouponsUsage setBody(null|array|UpdateDiscountCouponsUsageRequest $entity)
* @method UpdateDiscountCouponsUsage setBody(null|array<string, mixed>|UpdateDiscountCouponsUsageRequest $entity)
* @method null|UpdateDiscountCouponsUsageRequest getBody()
*/
class UpdateDiscountCouponsUsage extends Patch
Expand Down
Loading
Loading