Skip to content

Commit

Permalink
Remove thecodingmachine/safe and update Symfony dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Feb 11, 2025
1 parent 98f539d commit eaed0f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 25 deletions.
31 changes: 15 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,30 @@
"setono/tag-bag": "^2.0",
"setono/tag-bag-bundle": "^3.0",
"sylius/resource-bundle": "^1.6",
"symfony/config": "^4.4 || ^5.4",
"symfony/dependency-injection": "^4.4 || ^5.4",
"symfony/event-dispatcher": "^4.4 || ^5.4",
"symfony/form": "^4.4 || ^5.4",
"symfony/http-foundation": "^4.4 || ^5.4",
"symfony/http-kernel": "^4.4 || ^5.4",
"symfony/security-bundle": "^4.4 || ^5.4",
"thecodingmachine/safe": "^1.0",
"twig/twig": "^2.14"
"symfony/config": "^5.4 || ^6.4",
"symfony/dependency-injection": "^5.4 || ^6.4",
"symfony/event-dispatcher": "^5.4 || ^6.4",
"symfony/form": "^5.4 || ^6.4",
"symfony/http-foundation": "^5.4 || ^6.4",
"symfony/http-kernel": "^5.4 || ^6.4",
"symfony/security-bundle": "^5.4 || ^6.4",
"twig/twig": "^2.14 || ^3.0"
},
"require-dev": {
"matthiasnoback/symfony-config-test": "^4.3",
"matthiasnoback/symfony-dependency-injection-test": "^4.3",
"matthiasnoback/symfony-config-test": "^4.3 || ^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.3 || ^5.0",
"phpspec/phpspec": "^6.3",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.17",
"setono/code-quality-pack": "^2.2",
"setono/sylius-behat-pack": "^0.2",
"setono/sylius-tag-bag-plugin": "^1.1",
"sylius/sylius": "^1.7",
"symfony/browser-kit": "^4.4 || ^5.4",
"symfony/debug-bundle": "^4.4 || ^5.4",
"symfony/dotenv": "^4.4 || ^5.4",
"symfony/intl": "^4.4 || ^5.4",
"symfony/web-profiler-bundle": "^4.4 || ^5.4",
"symfony/browser-kit": "^5.4 || ^6.4",
"symfony/debug-bundle": "^5.4 || ^6.4",
"symfony/dotenv": "^5.4 || ^6.4",
"symfony/intl": "^5.4 || ^6.4",
"symfony/web-profiler-bundle": "^5.4 || ^6.4",
"weirdan/doctrine-psalm-plugin": "^1.2"
},
"prefer-stable": true,
Expand Down
5 changes: 0 additions & 5 deletions src/EventListener/ViewProductSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Setono\SyliusCriteoPlugin\EventListener;

use Safe\Exceptions\StringsException;
use function Safe\sprintf;
use Setono\SyliusCriteoPlugin\Context\AccountContextInterface;
use Setono\SyliusCriteoPlugin\Resolver\ProductIdResolverInterface;
use Setono\TagBag\Tag\InlineScriptTag;
Expand Down Expand Up @@ -41,9 +39,6 @@ public static function getSubscribedEvents(): array
];
}

/**
* @throws StringsException
*/
public function add(ResourceControllerEvent $event): void
{
$product = $event->getSubject();
Expand Down
4 changes: 0 additions & 4 deletions src/Exception/UnexpectedTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
use function get_class;
use function gettype;
use function is_object;
use Safe\Exceptions\StringsException;
use function Safe\sprintf;

final class UnexpectedTypeException extends \InvalidArgumentException
{
/**
* @param mixed $value
*
* @throws StringsException
*/
public function __construct($value, string $expectedType)
{
Expand Down

0 comments on commit eaed0f4

Please sign in to comment.