Skip to content
Merged
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 Helper/SubscriptionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function ($subscription) use ($publicHash) {
* @param mixed $value
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove this mixed as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, I thought about that... but there are about 60 type hints like this for mixed parameters in docblocks. Doesn't seem to blow anything up with PHP 7, but might be less confusing if they were removed?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yeah lets just leave it alone then

* @return Filter
*/
private function buildFilter(string $field, mixed $value)
private function buildFilter(string $field, $value)
{
return $this->filterBuilder
->setField($field)
Expand Down
2 changes: 1 addition & 1 deletion Helper/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getIncomplete()
* @param mixed $transactionId
* @return void
*/
public function closeTransaction(mixed $transactionId)
public function closeTransaction($transactionId)
{
$transaction = $this->transactionRepository->get($transactionId);
$transaction->setIsClosed(true);
Expand Down
2 changes: 1 addition & 1 deletion Model/CheckoutSessionManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ private function closeChargePermission($amazonSessionId, OrderInterface $order,
* @param mixed $orderId
* @return void
*/
public function setOrderPendingPaymentReview(mixed $orderId)
public function setOrderPendingPaymentReview($orderId)
{
try {
if (!$orderId) {
Expand Down