Skip to content

Commit

Permalink
Merge pull request #347 from GSadee/ci-enable-composer-analyse
Browse files Browse the repository at this point in the history
[CI] Enable composer analyse
  • Loading branch information
TheMilek authored Nov 25, 2024
2 parents 86d4105 + fa3678c commit f6cb3cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ jobs:
name: Run security check
run: symfony security:check

# -
# name: Run analysis
# run: composer analyse
-
name: Run analysis
run: composer analyse

-
name: Run PHPSpec
Expand Down
8 changes: 1 addition & 7 deletions src/Twig/Component/Invoice/ListComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use Sylius\Component\Core\Model\OrderInterface;
use Sylius\InvoicingPlugin\Doctrine\ORM\InvoiceRepositoryInterface;
use Sylius\InvoicingPlugin\Entity\Invoice;
use Sylius\InvoicingPlugin\Entity\InvoiceInterface;
use Sylius\TwigHooks\Twig\Component\HookableComponentTrait;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
Expand All @@ -28,16 +27,11 @@ class ListComponent

public OrderInterface $order;

/**
* @param InvoiceRepositoryInterface<Invoice> $productReviewRepository
*/
public function __construct(private readonly InvoiceRepositoryInterface $invoiceRepository)
{
}

/**
* @return array|InvoiceInterface[]
*/
/** @return array|InvoiceInterface[] */
#[ExposeInTemplate('invoices')]
public function getInvoices(): array
{
Expand Down

0 comments on commit f6cb3cd

Please sign in to comment.