"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/DomCrawler/Crawler.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

Crawler.php  (symfony-4.4.14):Crawler.php  (symfony-4.4.15)
skipping to change at line 539 skipping to change at line 539
* *
* @param string|null $selector An optional CSS selector to filter children * @param string|null $selector An optional CSS selector to filter children
* *
* @return static * @return static
* *
* @throws \InvalidArgumentException When current node is empty * @throws \InvalidArgumentException When current node is empty
* @throws \RuntimeException If the CssSelector Component is not ava ilable and $selector is provided * @throws \RuntimeException If the CssSelector Component is not ava ilable and $selector is provided
*/ */
public function children(/* string $selector = null */) public function children(/* string $selector = null */)
{ {
if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "string $s elector = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "string $s elector = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED);
} }
$selector = 0 < \func_num_args() ? func_get_arg(0) : null; $selector = 0 < \func_num_args() ? func_get_arg(0) : null;
if (!$this->nodes) { if (!$this->nodes) {
throw new \InvalidArgumentException('The current node list is empty. '); throw new \InvalidArgumentException('The current node list is empty. ');
} }
if (null !== $selector) { if (null !== $selector) {
$converter = $this->createCssSelectorConverter(); $converter = $this->createCssSelectorConverter();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)