We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a02960 commit 88794e9Copy full SHA for 88794e9
test/unit/Changelog/ChangelogReleaseNotesTest.php
@@ -156,12 +156,9 @@ public function testMergedInstanceContainsChangelogEntryFromTheInstanceThatHadOn
156
): void {
157
$merged = $original->merge($secondary);
158
159
- $r = new ReflectionProperty($merged, 'changelogEntry');
160
- /** @psalm-suppress UnusedMethodCall */
161
- $r->setAccessible(true);
162
-
+ $reflectionProperty = new ReflectionProperty($merged, 'changelogEntry');
163
// Equals, but not same, as the class stores a clone of the original.
164
- $this->assertEquals($expectedEntry, $r->getValue($merged));
+ $this->assertEquals($expectedEntry, $reflectionProperty->getValue($merged));
165
}
166
167
private const CHANGELOG_ENTRY = <<< 'ENTRY'
0 commit comments