Skip to content

Commit c98aba5

Browse files
committed
Fix linter issues
1 parent c258213 commit c98aba5

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ parameters:
1111
- src
1212
tmpDir: vendor/.cache.phpstan
1313
reportUnmatchedIgnoredErrors: false
14+
ignoreErrors:
15+
# Symfony polyfill bug
16+
- '/^Access to property \$\w+ of internal class Symfony\\Polyfill\\Php80\\PhpToken from outside its root namespace Symfony/'

src/Mapping/Driver/ReflectionDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ protected function load(
4343
$this->loadParametersFor($class, $reflection);
4444
}
4545

46+
/**
47+
* @param ClassMetadata<object> $class
48+
* @param \ReflectionClass<object> $reflection
49+
*/
4650
private function loadParametersFor(ClassMetadata $class, \ReflectionClass $reflection): void
4751
{
4852
$constructor = $reflection->getConstructor();

src/Runtime/Value/SymfonyValuePrinter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function dump(Data $data, $output = null): ?string
5151
private function createDefaultVarCloner(): VarCloner
5252
{
5353
$cloner = new VarCloner();
54+
/** @phpstan-ignore-next-line Allow internal class usage */
5455
$cloner->addCasters(ReflectionCaster::UNSET_CLOSURE_FILE_INFO);
5556

5657
return $cloner;

0 commit comments

Comments
 (0)