Skip to content

Commit 66cd112

Browse files
Merge branch '6.4' into 7.2
* 6.4: [Routing] Add test to validate that default value is allowed to not match requirement fix handling required options Fix @var phpdoc [Lock] [MongoDB] Enforce readPreference=primary and writeConcern=majority [FrameworkBundle] fix phpdoc in `MicroKernelTrait` Fixed validator translations for Albanian
2 parents 991d6f0 + 9683575 commit 66cd112

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Kernel/MicroKernelTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
182182
}
183183

184184
$file = (new \ReflectionObject($this))->getFileName();
185-
/* @var ContainerPhpFileLoader $kernelLoader */
185+
/** @var ContainerPhpFileLoader $kernelLoader */
186186
$kernelLoader = $loader->getResolver()->resolve($file);
187187
$kernelLoader->setCurrentDir(\dirname($file));
188188
$instanceof = &\Closure::bind(fn &() => $this->instanceof, $kernelLoader, $kernelLoader)();
@@ -208,7 +208,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
208208
public function loadRoutes(LoaderInterface $loader): RouteCollection
209209
{
210210
$file = (new \ReflectionObject($this))->getFileName();
211-
/* @var RoutingPhpFileLoader $kernelLoader */
211+
/** @var RoutingPhpFileLoader $kernelLoader */
212212
$kernelLoader = $loader->getResolver()->resolve($file, 'php');
213213
$kernelLoader->setCurrentDir(\dirname($file));
214214
$collection = new RouteCollection();

Tests/Controller/AbstractControllerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function testFile()
233233
$controller = $this->createController();
234234
$controller->setContainer($container);
235235

236-
/* @var BinaryFileResponse $response */
236+
/** @var BinaryFileResponse $response */
237237
$response = $controller->file(new File(__FILE__));
238238
$this->assertInstanceOf(BinaryFileResponse::class, $response);
239239
$this->assertSame(200, $response->getStatusCode());
@@ -248,7 +248,7 @@ public function testFileAsInline()
248248
{
249249
$controller = $this->createController();
250250

251-
/* @var BinaryFileResponse $response */
251+
/** @var BinaryFileResponse $response */
252252
$response = $controller->file(new File(__FILE__), null, ResponseHeaderBag::DISPOSITION_INLINE);
253253

254254
$this->assertInstanceOf(BinaryFileResponse::class, $response);
@@ -264,7 +264,7 @@ public function testFileWithOwnFileName()
264264
{
265265
$controller = $this->createController();
266266

267-
/* @var BinaryFileResponse $response */
267+
/** @var BinaryFileResponse $response */
268268
$fileName = 'test.php';
269269
$response = $controller->file(new File(__FILE__), $fileName);
270270

@@ -281,7 +281,7 @@ public function testFileWithOwnFileNameAsInline()
281281
{
282282
$controller = $this->createController();
283283

284-
/* @var BinaryFileResponse $response */
284+
/** @var BinaryFileResponse $response */
285285
$fileName = 'test.php';
286286
$response = $controller->file(new File(__FILE__), $fileName, ResponseHeaderBag::DISPOSITION_INLINE);
287287

@@ -298,7 +298,7 @@ public function testFileFromPath()
298298
{
299299
$controller = $this->createController();
300300

301-
/* @var BinaryFileResponse $response */
301+
/** @var BinaryFileResponse $response */
302302
$response = $controller->file(__FILE__);
303303

304304
$this->assertInstanceOf(BinaryFileResponse::class, $response);
@@ -314,7 +314,7 @@ public function testFileFromPathWithCustomizedFileName()
314314
{
315315
$controller = $this->createController();
316316

317-
/* @var BinaryFileResponse $response */
317+
/** @var BinaryFileResponse $response */
318318
$response = $controller->file(__FILE__, 'test.php');
319319

320320
$this->assertInstanceOf(BinaryFileResponse::class, $response);

0 commit comments

Comments
 (0)