Skip to content

Commit 1883612

Browse files
authored
feat: add missing type hints (#413)
* feat: add missing type hints * Compatibility with Symfony 4
1 parent 81316c9 commit 1883612

35 files changed

+394
-319
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
],
1919
"require": {
2020
"php": ">=7.1",
21+
"ext-dom": "*",
22+
"ext-libxml": "*",
2123
"php-webdriver/webdriver": "^1.8.2",
2224
"symfony/browser-kit": "^4.4 || ^5.0",
2325
"symfony/dom-crawler": "^4.4 || ^5.0",

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ parameters:
1717
- '#Call to an undefined method DOMNode::getTagName\(\)\.#'
1818
- '#Return type \(void\) of method Symfony\\Component\\Panther\\DomCrawler\\Crawler::clear\(\) should be compatible with return type \(Facebook\\WebDriver\\WebDriverElement\) of method Facebook\\WebDriver\\WebDriverElement::clear\(\)#'
1919
- '#Method Symfony\\Component\\Panther\\DomCrawler\\Crawler::getIterator\(\) should return ArrayIterator&iterable<DOMNode> but returns ArrayIterator<mixed, Facebook\\WebDriver\\WebDriverElement>\.#'
20-
- '#Method Symfony\\Component\\Panther\\DomCrawler\\Crawler::.+\(\) should return static\(Symfony\\Component\\Panther\\DomCrawler\\Crawler\) but returns Symfony\\Component\\Panther\\DomCrawler\\Crawler#'

0 commit comments

Comments
 (0)