Skip to content

Commit ee6e8f9

Browse files
Merge pull request #2929 from dpfaffenbauer/pimcore/12.3
[Pimcore] require symfony ^7.0 only
2 parents 6a2b09b + 7fcd55e commit ee6e8f9

File tree

122 files changed

+307
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+307
-260
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"sebastian/diff": "^4.0 | ^5.0 | ^6.0",
109109
"stof/doctrine-extensions-bundle": "^1.6",
110110
"sylius/theme-bundle": "^2.2",
111+
"symfony/config": "^7.4",
111112
"symfony/dotenv": "^6.3 || ^7.0",
112113
"symfony/form": "^6.3 || ^7.0",
113114
"symfony/http-client": "^6.3 || ^7.0",
@@ -116,7 +117,7 @@
116117
"symfony/scheduler": "^6.4 || ^7.0",
117118
"symfony/serializer": "^6.3 || ^7.0",
118119
"symfony/twig-bundle": "^6.3 || ^7.0",
119-
"symfony/webpack-encore-bundle": "^1.17",
120+
"symfony/webpack-encore-bundle": "^2.4",
120121
"webmozart/assert": "^1.10"
121122
},
122123
"suggest": {
@@ -141,6 +142,7 @@
141142
"pimcore/opensearch-client": "^2.0",
142143
"robertfausk/behat-panther-extension": "^1.0",
143144
"symfony/panther": "^2.2",
145+
"symfony/browser-kit": "^7.0",
144146
"symfony/runtime": "^6.4 || ^7.0",
145147
"symplify/easy-coding-standard": "^11.1",
146148
"vimeo/psalm": "^6.10"

config/packages/security.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ pimcore:
77
Pimcore\Model\DataObject\CoreShopUser: coreshop.security.user.password_hasher_factories
88

99
security:
10-
enable_authenticator_manager: true
11-
1210
providers:
1311
pimcore_admin:
1412
id: Pimcore\Security\User\UserProvider

psalm.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@
222222
</errorLevel>
223223
</AmbiguousConstantInheritance>
224224

225+
<RedundantCastGivenDocblockType>
226+
<errorLevel type="info">
227+
<file name="src/CoreShop/Bundle/PimcoreBundle/Controller/Admin/DynamicDropdownController.php" />
228+
<file name="src/CoreShop/Bundle/CoreBundle/Controller/CustomerTransformerController.php" />
229+
</errorLevel>
230+
</RedundantCastGivenDocblockType>
231+
225232
<!-- level 5 issues - should be avoided at mosts costs... -->
226233

227234

src/BehatKernel.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,4 @@ public function boot(): void
3333

3434
\Pimcore::setKernel($this);
3535
}
36-
37-
protected function build(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
38-
{
39-
parent::build($container);
40-
41-
$container->setParameter('pimcore.geoip.db_file', $container->getParameter('kernel.project_dir') . '/var/config/GeoLite2-City.mmdb');
42-
}
4336
}

src/CoreShop/Behat/Context/Domain/CustomerContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function iShouldBeLoggedInWithEmail(CustomerInterface $customer): void
5050
*/
5151
public function itShouldThrowAnErrorDeletingCustomer(CustomerInterface $customer): void
5252
{
53-
Assert::throws(function () use ($customer) {
53+
Assert::throws(function () use ($customer): void {
5454
$customer->delete();
5555
});
5656
}

src/CoreShop/Behat/Context/Setup/OptimisticEntityLockContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function iLockTheObjectInstanceWithCurrentVersion(Concrete $dataObject):
4444
*/
4545
public function iUnsuccessfullyLockTheObjectInstanceWithCurrentVersion(Concrete $dataObject): void
4646
{
47-
Assert::throws(function () use ($dataObject) {
47+
Assert::throws(function () use ($dataObject): void {
4848
$this->entityLockManager->lock($dataObject, $dataObject->getValueForFieldName('optimisticLockVersion'));
4949
}, OptimisticLockException::class);
5050
}
@@ -55,7 +55,7 @@ public function iUnsuccessfullyLockTheObjectInstanceWithCurrentVersion(Concrete
5555
*/
5656
public function iUnsuccessfullySaveTheObject(Concrete $dataObject): void
5757
{
58-
Assert::throws(function () use ($dataObject) {
58+
Assert::throws(function () use ($dataObject): void {
5959
$dataObject->save();
6060
}, OptimisticLockException::class);
6161
}

src/CoreShop/Bundle/CoreBundle/CoreShopCoreBundle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public static function registerDependentBundles(BundleCollection $collection): v
9898
$collection->addBundle(new CoreShopWishlistBundle(), 1500);
9999
$collection->addBundle(new CoreShopClassDefinitionPatchBundle(), 1400);
100100
$collection->addBundle(new PimcoreCustomReportsBundle(), 20000);
101+
/**
102+
* @psalm-suppress DeprecatedClass
103+
*/
101104
$collection->addBundle(new PimcoreNewsletterBundle(), 20000);
102105
}
103106

src/CoreShop/Bundle/CoreBundle/DependencyInjection/CoreShopCoreExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ public function load(array $configs, ContainerBuilder $container): void
6868
$container->setParameter('coreshop.all.dependant.bundles', []);
6969

7070
$this->registerResources('coreshop', CoreShopResourceBundle::DRIVER_DOCTRINE_ORM, $configs['resources'], $container);
71+
/**
72+
* @psalm-suppress DeprecatedClass
73+
*/
7174
$this->registerDependantBundles('coreshop', [PimcoreSimpleBackendSearchBundle::class, PimcoreCustomReportsBundle::class], $container);
7275

7376
if (array_key_exists('pimcore_admin', $configs)) {

src/CoreShop/Bundle/CoreBundle/EventListener/NotificationRules/CustomerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function applyNewsletterConfirmRequestRule(RequestNewsletterConfirmationE
9191
$customer->setNewsletterToken(hash('md5', $customer->getId() . $customer->getEmail() . mt_rand() . time()));
9292

9393
VersionHelper::useVersioning(
94-
function () use ($customer) {
94+
function () use ($customer): void {
9595
$customer->save();
9696
},
9797
false,

src/CoreShop/Bundle/CoreBundle/EventListener/ProductAvailabilityEventListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function informCarts(array $cartItems): void
122122
$cartItem->delete();
123123

124124
VersionHelper::useVersioning(
125-
function () use ($cart) {
125+
function () use ($cart): void {
126126
$cart->setNeedsRecalculation(true);
127127
$cart->save();
128128
},

0 commit comments

Comments
 (0)