@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function getFunctions(): array |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | - new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 36 | + new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | + new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | public static function findOneBy(RepositoryInterface $repository, string $field): \Closure |
| 121 | 121 | { |
| 122 | 122 | return |
| 123 | - /** @param mixed $previousValue */ |
|
| 123 | + /** @param string $previousValue */ |
|
| 124 | 124 | function (Options $options, $previousValue) use ($repository, $field): ?object { |
| 125 | 125 | if (null === $previousValue || [] === $previousValue) { |
| 126 | 126 | return $previousValue; |