Skip to content

Commit 70513fc

Browse files
committed
minor symfony#59530 [PropertyInfo] Fix typo in var name (HypeMC)
This PR was merged into the 7.3 branch. Discussion ---------- [PropertyInfo] Fix typo in var name | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Typo Commits ------- 672f38c [PropertyInfo] Fix typo in var name
2 parents 7311608 + 672f38c commit 70513fc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -533,14 +533,14 @@ public static function provideLegacyConstructorTypes(): array
533533

534534
public function testNullOnPrivateProtectedAccessor()
535535
{
536-
$barAcessor = $this->extractor->getReadInfo(Dummy::class, 'bar');
536+
$barAccessor = $this->extractor->getReadInfo(Dummy::class, 'bar');
537537
$barMutator = $this->extractor->getWriteInfo(Dummy::class, 'bar');
538-
$bazAcessor = $this->extractor->getReadInfo(Dummy::class, 'baz');
538+
$bazAccessor = $this->extractor->getReadInfo(Dummy::class, 'baz');
539539
$bazMutator = $this->extractor->getWriteInfo(Dummy::class, 'baz');
540540

541-
$this->assertNull($barAcessor);
541+
$this->assertNull($barAccessor);
542542
$this->assertEquals(PropertyWriteInfo::TYPE_NONE, $barMutator->getType());
543-
$this->assertNull($bazAcessor);
543+
$this->assertNull($bazAccessor);
544544
$this->assertEquals(PropertyWriteInfo::TYPE_NONE, $bazMutator->getType());
545545
}
546546

@@ -563,19 +563,19 @@ public function testTypedPropertiesLegacy()
563563
public function testGetReadAccessor($class, $property, $found, $type, $name, $visibility, $static)
564564
{
565565
$extractor = new ReflectionExtractor(null, null, null, true, ReflectionExtractor::ALLOW_PUBLIC | ReflectionExtractor::ALLOW_PROTECTED | ReflectionExtractor::ALLOW_PRIVATE);
566-
$readAcessor = $extractor->getReadInfo($class, $property);
566+
$readAccessor = $extractor->getReadInfo($class, $property);
567567

568568
if (!$found) {
569-
$this->assertNull($readAcessor);
569+
$this->assertNull($readAccessor);
570570

571571
return;
572572
}
573573

574-
$this->assertNotNull($readAcessor);
575-
$this->assertSame($type, $readAcessor->getType());
576-
$this->assertSame($name, $readAcessor->getName());
577-
$this->assertSame($visibility, $readAcessor->getVisibility());
578-
$this->assertSame($static, $readAcessor->isStatic());
574+
$this->assertNotNull($readAccessor);
575+
$this->assertSame($type, $readAccessor->getType());
576+
$this->assertSame($name, $readAccessor->getName());
577+
$this->assertSame($visibility, $readAccessor->getVisibility());
578+
$this->assertSame($static, $readAccessor->isStatic());
579579
}
580580

581581
public static function readAccessorProvider(): array

0 commit comments

Comments
 (0)