Skip to content

Commit

Permalink
Remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Feb 19, 2020
1 parent 02e61e0 commit 486fe88
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
>

Expand Down
2 changes: 1 addition & 1 deletion src/Welldom/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public function createElement($name, $value = null, $namespaceUri = null) {
*/
public function createNode($expression, $value = null, array $attributes = null)
{
$current = ('/' === $expression{0}) ? $this : $this->documentElement;
$current = ('/' === $expression[0]) ? $this : $this->documentElement;
$xpaths = explode('/', str_replace('//', '', $expression));

$i = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Welldom/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function toArray($renderRoot = false)
$mValue = $childNode->getValue();
}

$sKey = $childNode->nodeName{0} == '#' ? 0 : $childNode->nodeName;
$sKey = $childNode->nodeName[0] == '#' ? 0 : $childNode->nodeName;

// this will give us a clue as to what the result structure should be
// how many of these child nodes do we have?
Expand Down

0 comments on commit 486fe88

Please sign in to comment.