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

add application version number information #43

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

UrosPurtic
Copy link
Contributor

No description provided.

@@ -103,6 +107,17 @@ public function setExcluded(Exclude $exclude)
$this->exclude = $exclude;
}

public function setAppVersionNumber($version)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add type hint:
public function setAppVersionNumber(Version $version)


public function getAppVersionNumber()
{
return $this->version instanceof Version ? $this->version->getVersionNumber() : $this->version;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to write something like:
return $this->version instanceof Version ? $this->version->getVersionNumber() : null

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. $this->version can be null by itself so no need to do ": null". I'm just making the check to make sure the ->getVersionNumber method doesn't break

src/Data/TaskerEnd.php Show resolved Hide resolved
src/Data/LoggerAbstract.php Show resolved Hide resolved
@ppavlovic ppavlovic merged commit 870e78a into g4code:master Jun 29, 2023
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 this pull request may close these issues.

2 participants