Skip to content

Commit d58abcf

Browse files
committed
Fix @var phpdoc
1 parent fb11d06 commit d58abcf

File tree

29 files changed

+93
-93
lines changed

29 files changed

+93
-93
lines changed

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testCreateProxyServiceWithRuntimeInstantiator()
3838

3939
$builder->compile();
4040

41-
/* @var $foo1 \ProxyManager\Proxy\LazyLoadingInterface|\ProxyManager\Proxy\ValueHolderInterface */
41+
/** @var $foo1 \ProxyManager\Proxy\LazyLoadingInterface|\ProxyManager\Proxy\ValueHolderInterface */
4242
$foo1 = $builder->get('foo1');
4343

4444
$foo1->__destruct();

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Instantiator/RuntimeInstantiatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testInstantiateProxy()
4141
$definition = new Definition('stdClass');
4242
$instantiator = fn () => $instance;
4343

44-
/* @var $proxy LazyLoadingInterface|ValueHolderInterface */
44+
/** @var $proxy LazyLoadingInterface|ValueHolderInterface */
4545
$proxy = $this->instantiator->instantiateProxy($container, $definition, 'foo', $instantiator);
4646

4747
$this->assertInstanceOf(LazyLoadingInterface::class, $proxy);

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function createFieldChoicesList(iterable $choices, string|false|null $tr
157157
continue;
158158
}
159159

160-
/* @var ChoiceView $choice */
160+
/** @var ChoiceView $choice */
161161
$translatableLabel = $this->createFieldTranslation($choice->label, $choice->labelTranslationParameters, $translationDomain);
162162
yield $translatableLabel => $choice->value;
163163
}

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
178178
}
179179

180180
$file = (new \ReflectionObject($this))->getFileName();
181-
/* @var ContainerPhpFileLoader $kernelLoader */
181+
/** @var ContainerPhpFileLoader $kernelLoader */
182182
$kernelLoader = $loader->getResolver()->resolve($file);
183183
$kernelLoader->setCurrentDir(\dirname($file));
184184
$instanceof = &\Closure::bind(fn &() => $this->instanceof, $kernelLoader, $kernelLoader)();
@@ -204,7 +204,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
204204
public function loadRoutes(LoaderInterface $loader): RouteCollection
205205
{
206206
$file = (new \ReflectionObject($this))->getFileName();
207-
/* @var RoutingPhpFileLoader $kernelLoader */
207+
/** @var RoutingPhpFileLoader $kernelLoader */
208208
$kernelLoader = $loader->getResolver()->resolve($file, 'php');
209209
$kernelLoader->setCurrentDir(\dirname($file));
210210
$collection = new RouteCollection();

src/Symfony/Bundle/FrameworkBundle/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);

src/Symfony/Component/AssetMapper/ImportMap/Resolver/JsDelivrEsmResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function resolvePackages(array $packagesToRequire): array
6363
$versionUrl .= '?specifier='.urlencode($options->versionConstraint);
6464
}
6565
$response = $this->httpClient->request('GET', $versionUrl);
66-
$requiredPackages[] = [$options, $response, $packageName, $filePath, /* resolved version */ null];
66+
$requiredPackages[] = [$options, $response, $packageName, $filePath, /** resolved version */ null];
6767
}
6868

6969
// use the version of each package to request the contents
@@ -196,7 +196,7 @@ public function downloadPackages(array $importMapEntries, ?callable $progressCal
196196

197197
$dependencies = [];
198198
$extraFiles = [];
199-
/* @var ImportMapEntry $entry */
199+
/** @var ImportMapEntry $entry */
200200
$contents[$package] = [
201201
'content' => $this->makeImportsBare($response->getContent(), $dependencies, $extraFiles, $entry->type, $entry->getPackagePathString()),
202202
'dependencies' => $dependencies,

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testUpdateAll()
248248
->method('resolvePackages')
249249
->with($this->callback(function ($packages) {
250250
$this->assertInstanceOf(PackageRequireOptions::class, $packages[0]);
251-
/* @var PackageRequireOptions[] $packages */
251+
/** @var PackageRequireOptions[] $packages */
252252
$this->assertCount(2, $packages);
253253

254254
$this->assertSame('lodash', $packages[0]->packageModuleSpecifier);

src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function testInlineStyleOptions(string $tag, ?string $expected = null, ?s
177177
$expected = $tag.$input.'</'.$styleString.'>';
178178
$this->assertSame($expected, $formatter->format($expected));
179179
} else {
180-
/* @var OutputFormatterStyle $result */
180+
/** @var OutputFormatterStyle $result */
181181
$this->assertInstanceOf(OutputFormatterStyle::class, $result);
182182
$this->assertSame($expected, $formatter->format($tag.$input.'</>'));
183183
$this->assertSame($expected, $formatter->format($tag.$input.'</'.$styleString.'>'));

src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ public function testAddObjectResource()
11281128

11291129
$this->assertCount(1, $resources);
11301130

1131-
/* @var $resource \Symfony\Component\Config\Resource\FileResource */
1131+
/** @var $resource \Symfony\Component\Config\Resource\FileResource */
11321132
$resource = end($resources);
11331133

11341134
$this->assertInstanceOf(FileResource::class, $resource);

src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function validate(mixed $form, Constraint $formConstraint)
4242
return;
4343
}
4444

45-
/* @var FormInterface $form */
45+
/** @var FormInterface $form */
4646
$config = $form->getConfig();
4747

4848
$validator = $this->context->getValidator()->inContext($this->context);

0 commit comments

Comments
 (0)