8000 Merge branch '6.3' into 6.4 · symfony/symfony@0d51271 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d51271

Browse files
Merge branch '6.3' into 6.4
* 6.3: [PhpUnitBridge] Ignore deprecations about the annotation mapping driver when it's not possible to move to the attribute driver yet [SecurityBundle] Mark SignatureAlgorithmFactory as internal remove unusable cache pools GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations.
2 parents 9909410 + db20408 commit 0d51271

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

src/Symfony/Bridge/PhpUnit/bootstrap.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1515

1616
// Detect if we need to serialize deprecations to a file.
17-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
17+
if (in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
1818
DeprecationErrorHandler::collectDeprecations($file);
1919

2020
return;
@@ -34,6 +34,11 @@
3434

3535
if (class_exists(Deprecation::class)) {
3636
Deprecation::withoutDeduplication();
37+
38+
if (\PHP_VERSION_ID < 80000) {
39+
// Ignore deprecations about the annotation mapping driver when it's not possible to move to the attribute driver yet
40+
Deprecation::ignoreDeprecations('https://github.com/doctrine/orm/issues/10098');
41+
}
3742
}
3843

3944
if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ public function load(array $configs, ContainerBuilder $container)
342342
}
343343

344344
$this->registerAssetMapperConfiguration($config['asset_mapper'], $container, $loader, $this->readConfigEnabled('assets', $container, $config['assets']));
345+
} else {
346+
$container->removeDefinition('cache.asset_mapper');
345347
}
346348

347349
if ($this->readConfigEnabled('http_client', $container, $config['http_client'])) {
@@ -485,6 +487,7 @@ public function load(array $configs, ContainerBuilder $container)
485487
}
486488
$this->registerSchedulerConfiguration($config['scheduler'], $container, $loader);
487489
} else {
490+
$container->removeDefinition('cache.scheduler');
488491
$container->removeDefinition('console.command.scheduler_debug');
489492
}
490493

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SignatureAlgorithmFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
/**
2020
* Creates a signature algorithm for {@see OidcTokenHandler}.
2121
*
22+
* @internal
23+
*
2224
* @experimental
2325
*/
2426
final class SignatureAlgorithmFactory

src/Symfony/Component/Validator/Context/ExecutionContextInterface.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,37 +123,44 @@ public function getObject(): ?object;
123123
*
124124
* @param object|null $object The currently validated object
125125
* @param string $propertyPath The property path to the current value
126+
*
127+
* @return void
126128
*/
127-
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath): void;
129+
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath);
128130

129131
/**
130132
* Warning: Should not be called by user code, to be used by the validator engine only.
131133
*
132134
* @param string|null $group The validated group
135+
*
136+
* @return void
133137
*/
134-
public function setGroup(?string $group): void;
138+
public function setGroup(?string $group);
135139

136140
/**
137141
* Warning: Should not be called by user code, to be used by the validator engine only.
142+
*
143+
* @return void
138144
*/
139-
public function setConstraint(Constraint $constraint): void;
145+
public function setConstraint(Constraint $constraint);
140146

141147
/**
142148
* Warning: Should not be called by user code, to be used by the validator engine only.
143149
*
144150
* @param string $cacheKey The hash of the object
145151
* @param string $groupHash The group's name or hash, if it is group
146152
* sequence
153+
*
154+
* @return void
147155
*/
148-
public function markGroupAsValidated(string $cacheKey, string $groupHash): void;
156+
public function markGroupAsValidated(string $cacheKey, string $groupHash);
149157

150158
/**
151159
* Warning: Should not be called by user code, to be used by the validator engine only.
152160
*
153161
* @param string $cacheKey The hash of the object
154162
* @param string $groupHash The group's name or hash, if it is group
155163
* sequence
156-
*
157164
*/
158165
public function isGroupValidated(string $cacheKey, string $groupHash): bool;
159166

@@ -162,15 +169,16 @@ public function isGroupValidated(string $cacheKey, string $groupHash): bool;
162169
*
163170
* @param string $cacheKey The hash of the object
164171
* @param string $constraintHash The hash of the constraint
172+
*
173+
* @return void
165174
*/
166-
public function markConstraintAsValidated(string $cacheKey, string $constraintHash): void;
175+
public function markConstraintAsValidated(string $cacheKey, string $constraintHash);
167176

168177
/**
169178
* Warning: Should not be called by user code, to be used by the validator engine only.
170179
*
171180
* @param string $cacheKey The hash of the object
172181
* @param string $constraintHash The hash of the constraint
173-
*
174182
*/
175183
public function isConstraintValidated(string $cacheKey, string $constraintHash): bool;
176184

@@ -188,7 +196,6 @@ public function markObjectAsInitialized(string $cacheKey): void;
188196
*
189197
* @param string $cacheKey The hash of the object
190198
*
191-
*
192199
* @see ObjectInitializerInterface
193200
*/
194201
public function isObjectInitialized(string $cacheKey): bool;

0 commit comments

Comments
 (0)
0