Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Applied fixes from FlintCI
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored and OskarStark committed Apr 14, 2020
1 parent f781485 commit 5b5bcfa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Backend/PostponeRuntimeBackend.php
Expand Up @@ -74,7 +74,7 @@ public function publish(MessageInterface $message)
* Actually, an event is not necessary, you can call this method manually, to.
* The event is not processed in any way.
*/
public function onEvent(Event $event = null)
public function onEvent(?Event $event = null)
{
while (!empty($this->messages)) {
$message = array_shift($this->messages);
Expand Down
2 changes: 1 addition & 1 deletion src/Event/IterateEvent.php
Expand Up @@ -46,7 +46,7 @@ class IterateEvent extends Event
* @param BackendInterface $backend
* @param MessageInterface $message
*/
public function __construct(MessageIteratorInterface $iterator, BackendInterface $backend = null, MessageInterface $message = null)
public function __construct(MessageIteratorInterface $iterator, ?BackendInterface $backend = null, ?MessageInterface $message = null)
{
$this->iterator = $iterator;
$this->backend = $backend;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Message.php
Expand Up @@ -120,7 +120,7 @@ public function getValue($names, $default = null)
/**
* {@inheritdoc}
*/
public function setCompletedAt(\DateTime $completedAt = null)
public function setCompletedAt(?\DateTime $completedAt = null)
{
$this->completedAt = $completedAt;
}
Expand All @@ -136,7 +136,7 @@ public function getCompletedAt()
/**
* {@inheritdoc}
*/
public function setCreatedAt(\DateTime $createdAt = null)
public function setCreatedAt(?\DateTime $createdAt = null)
{
$this->createdAt = $createdAt;
}
Expand Down Expand Up @@ -216,7 +216,7 @@ public function getRestartCount()
/**
* {@inheritdoc}
*/
public function setUpdatedAt(\DateTime $updatedAt = null)
public function setUpdatedAt(?\DateTime $updatedAt = null)
{
$this->updatedAt = $updatedAt;
}
Expand Down Expand Up @@ -246,7 +246,7 @@ public static function getStateList()
/**
* {@inheritdoc}
*/
public function setStartedAt(\DateTime $startedAt = null)
public function setStartedAt(?\DateTime $startedAt = null)
{
$this->startedAt = $startedAt;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/MessageInterface.php
Expand Up @@ -42,7 +42,7 @@ public function getValue($names, $default = null);
/**
* @param \DateTime $completedAt
*/
public function setCompletedAt(\DateTime $completedAt = null);
public function setCompletedAt(?\DateTime $completedAt = null);

/**
* @return \DateTime
Expand All @@ -52,7 +52,7 @@ public function getCompletedAt();
/**
* @param \DateTime $createdAt
*/
public function setCreatedAt(\DateTime $createdAt = null);
public function setCreatedAt(?\DateTime $createdAt = null);

/**
* @return \DateTime
Expand Down Expand Up @@ -102,7 +102,7 @@ public function getRestartCount();
/**
* @param \DateTime $updatedAt
*/
public function setUpdatedAt(\DateTime $updatedAt = null);
public function setUpdatedAt(?\DateTime $updatedAt = null);

/**
* @return \DateTime
Expand All @@ -112,7 +112,7 @@ public function getUpdatedAt();
/**
* @param \DateTime $startedAt
*/
public function setStartedAt(\DateTime $startedAt = null);
public function setStartedAt(?\DateTime $startedAt = null);

/**
* @return \DateTime
Expand Down
2 changes: 1 addition & 1 deletion tests/Entity/MessageManagerMock.php
Expand Up @@ -23,7 +23,7 @@ class MessageManagerMock extends MessageManager
/**
* {@inheritdoc}
*/
public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null)
{
$result = [];
while (null !== $limit && $limit > 0) {
Expand Down

0 comments on commit 5b5bcfa

Please sign in to comment.