Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1206176

Browse files
committed
Merge branch '2.3'
* 2.3: [DoctrineBridge] Added type check to prevent calling clear() on arrays [Intl] Improved FormTypeCsrfExtension to use the type class as default intention if the form name is empty Fix docblock typo
2 parents f2c6211 + 60a14f6 commit 1206176

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Form\EventListener;
1313

14+
use Doctrine\Common\Collections\Collection;
1415
use Symfony\Component\Form\FormEvents;
1516
use Symfony\Component\Form\FormEvent;
1617
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -40,7 +41,7 @@ public function onBind(FormEvent $event)
4041

4142
// If all items were removed, call clear which has a higher
4243
// performance on persistent collections
43-
if ($collection && count($data) === 0) {
44+
if ($collection instanceof Collection && count($data) === 0) {
4445
$collection->clear();
4546
}
4647
}

src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function cancelCookie(Request $request)
291291
}
292292

293293
/**
294-
* Checks whether remember-me capabilities where requested
294+
* Checks whether remember-me capabilities were requested
295295
*
296296
* @param Request $request
297297
*

0 commit comments

Comments
 (0)