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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.idea
/vendor
.php_cs.cache
/composer.lock
/composer.lock.php-cs-fixer.cache
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ This plugin allows you to save products as favorite in OroCommerce

| | Version |
| :--- |:--------|
| PHP | 8.4 |
| OroCommerce | 6.1.* |
| PHP | 8.5 |
| OroCommerce | 7.0.* |

## Installation

Expand Down
16 changes: 5 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,12 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"phpro/grumphp": "^1.5",
"enlightn/security-checker": "^1.9",
"friendsofphp/php-cs-fixer": "^3.57",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpmd/phpmd": "~2.15.0",
"squizlabs/php_codesniffer": "~4.0.1",
"sebastian/phpcpd": "^6.0",
"jakub-onderka/php-parallel-lint": "^1.0",
"friendsoftwig/twigcs": "^5.1",
"friendsofphp/php-cs-fixer": "~3.92.3",
"phpstan/phpstan": "^1.3",
"phpstan/phpstan-symfony": "^1.0",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
"php-parallel-lint/php-parallel-lint": "^1.3"
"phpro/grumphp": "^2.10.0",
"phpstan/phpstan": "^2.0"
},
"config": {
"sort-packages": true,
Expand Down
4 changes: 2 additions & 2 deletions ruleset/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
level: 4
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- identifier: phpDoc.parseError
bootstrapFiles:
- ../vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
use Symfony\Component\Routing\Attribute\Route;
use Synolia\Bundle\FavoriteBundle\Handler\FavoriteButtonAjaxHandler;

#[Route('/ajax', options: ["expose"=>true])]

#[Route(options: ["expose"=>true])]
class FavoriteButtonAjaxController extends AbstractController
{
#[Route('/update/{id}', name: 'synolia_favorite_button_ajax_update', requirements: ['id' => '\d+'], methods: ['POST'])]
#[Route('/ajax/update/{id}', name: 'synolia_favorite_button_ajax_update', requirements: ['id' => '\d+'], methods: ['POST'])]
public function updateAction(
Product $product,
TokenAccessorInterface $tokenAccessor,
Expand Down
Loading