Correctly default to null and add type hint

This commit is contained in:
Joas Schilling 2016-03-07 10:48:16 +01:00
parent c07b731689
commit c99ae62c33

View file

@ -78,7 +78,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
*/
public function __construct(IDBConnection $db,
Principal $principalBackend,
$dispatcher ) {
EventDispatcherInterface $dispatcher = null) {
$this->db = $db;
$this->principalBackend = $principalBackend;
$this->dispatcher = $dispatcher;