You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 2.8:
Fix Clidumper tests
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
Apply fixers
Disable the native_constant_invocation fixer until it can be scoped
Update the list of excluded files for the CS fixer
Copy file name to clipboardExpand all lines: Crawler.php
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,12 @@ public function add($node)
112
112
$this->addNodeList($node);
113
113
} elseif ($nodeinstanceof \DOMNode) {
114
114
$this->addNode($node);
115
-
} elseif (is_array($node)) {
115
+
} elseif (\is_array($node)) {
116
116
$this->addNodes($node);
117
-
} elseif (is_string($node)) {
117
+
} elseif (\is_string($node)) {
118
118
$this->addContent($node);
119
119
} elseif (null !== $node) {
120
-
thrownew \InvalidArgumentException(sprintf('Expecting a DOMNodeList or DOMNode instance, an array, a string, or null, but got "%s".', is_object($node) ? get_class($node) : gettype($node)));
120
+
thrownew \InvalidArgumentException(sprintf('Expecting a DOMNodeList or DOMNode instance, an array, a string, or null, but got "%s".', \is_object($node) ? \get_class($node) : \gettype($node)));
121
121
}
122
122
}
123
123
@@ -211,7 +211,7 @@ public function addHtmlContent($content, $charset = 'UTF-8')
0 commit comments