Skip to content

Commit 4d2009b

Browse files
committed
Merge branch '1.x'
* 1.x: Fix tests Allow deprecation-contracts 3
2 parents a04b12f + 2d646ac commit 4d2009b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
"ext-libxml": "*",
2323
"php-webdriver/webdriver": "^1.8.2",
2424
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0",
25+
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
2526
"symfony/deprecation-contracts": "^2.4 || ^3",
2627
"symfony/dom-crawler": "^4.4 || ^5.0 || ^6.0",
2728
"symfony/http-client": "^4.4.11 || ^5.2 || ^6.0",
29+
"symfony/http-kernel": "^4.4 || ^5.0 || ^6.0",
2830
"symfony/polyfill-php72": "^1.9",
2931
"symfony/process": "^4.4 || ^5.0 || ^6.0"
3032
},

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ parameters:
66
bootstrapFiles:
77
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
88
inferPrivatePropertyTypeFromConstructor: true
9+
excludePaths:
10+
- tests/DummyKernel.php
911
ignoreErrors:
1012
# False positive
1113
- '#Call to an undefined method ReflectionType::getName\(\)\.#'
@@ -14,4 +16,4 @@ parameters:
1416
# Require a redesign of the underlying Symfony components
1517
- '#Call to an undefined method DOMNode::getTagName\(\)\.#'
1618
- '#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\(\)#'
17-
- '#Method Symfony\\Component\\Panther\\DomCrawler\\Crawler::getIterator\(\) should return ArrayIterator&iterable<DOMNode> but returns ArrayIterator<\(int\|string\), Facebook\\WebDriver\\WebDriverElement>\.#'
19+
- '#Method Symfony\\Component\\Panther\\DomCrawler\\Crawler::getIterator\(\) should return ArrayIterator<int, DOMNode> but returns ArrayIterator<\(int\|string\), Facebook\\WebDriver\\WebDriverElement>\.#'

0 commit comments

Comments
 (0)