Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Exceptions can be null but the get Method requires a string #18

Closed
erkenes opened this issue Nov 13, 2022 · 0 comments · Fixed by #19
Closed

BUG: Exceptions can be null but the get Method requires a string #18

erkenes opened this issue Nov 13, 2022 · 0 comments · Fixed by #19

Comments

@erkenes
Copy link
Contributor

erkenes commented Nov 13, 2022

The exception property of the TaskExecution class can be null but the get and set methods are requiring a string.

    /**
     * @var string
     * @ORM\Column(nullable = true, type = "text")  //<--- Null is allowed
     */
    protected $exception;

    /**
     * @return string
     */
    public function getException(): string // <--- returns only a string
    {
        return $this->exception;
    }

    /**
     * @param string $exception
     * @return TaskExecution
     */
    public function setException(string $exception): TaskExecution
    {
        $this->exception = $exception;
        return $this;
    }

If you call the method ./flow task:sho <identifier> it is not possible to get a list of the runned tasks:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant