Skip to content

Commit 929de96

Browse files
Merge branch '2.8' into 3.0
* 2.8: [Console] Application update PHPDoc of add and register methods [Config] Extra tests for Config component Fixed bugs in names of classes and methods. [DoctrineBridge] Fixed php doc [FrameworkBundle] Fixed parameters number mismatch declaration [BrowserKit] Added test for followRedirect method (POST method) Fix the money form type render with Bootstrap3 [BrowserKit] Uppercase the "GET" method in redirects [DomCrawler] Inherit the namespace cache in subcrawlers [WebProfilerBundle] Fixed JSDoc parameter definition [HttpFoundation] HttpCache refresh stale responses containing an ETag Conflicts: src/Symfony/Component/Finder/Tests/Shell/CommandTest.php
2 parents 281f06a + 244ff2a commit 929de96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Constraints/AbstractComparisonValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function validate($value, Constraint $constraint)
4343
// the DateTime constructor:
4444
// http://php.net/manual/en/datetime.formats.php
4545
if (is_string($comparedValue)) {
46-
if ($value instanceof \DatetimeImmutable) {
46+
if ($value instanceof \DateTimeImmutable) {
4747
// If $value is immutable, convert the compared value to a
4848
// DateTimeImmutable too
4949
$comparedValue = new \DatetimeImmutable($comparedValue);

0 commit comments

Comments
 (0)