Skip to content

Commit c2ba3c9

Browse files
Merge pull request #19683 from kamil-tekiela/Access-property-directly
Access property directly
2 parents 8c4b439 + a18547c commit c2ba3c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

psalm-baseline.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7119,7 +7119,7 @@
71197119
<code><![CDATA[string[]]]></code>
71207120
</PossiblyUnusedReturnValue>
71217121
<RedundantCondition>
7122-
<code><![CDATA[$paragraphValue === '' && isset($paragraph->{'a'})]]></code>
7122+
<code><![CDATA[$paragraphValue === '' && isset($paragraph->a)]]></code>
71237123
</RedundantCondition>
71247124
</file>
71257125
<file src="src/Plugins/Import/ImportShp.php">

src/Plugins/Import/ImportOds.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ protected function getValue(SimpleXMLElement $cellAttrs, SimpleXMLElement $text)
221221
// Maybe a text node has the content ? (email, url, ...)
222222
// Example: <text:a ... xlink:href="mailto:[email protected]">[email protected]</text:a>
223223
$paragraphValue = $paragraph->__toString();
224-
if ($paragraphValue === '' && isset($paragraph->{'a'})) {
225-
$values[] = $paragraph->{'a'}->__toString();
224+
if ($paragraphValue === '' && isset($paragraph->a)) {
225+
$values[] = $paragraph->a->__toString();
226226
continue;
227227
}
228228

0 commit comments

Comments
 (0)