Skip to content

Populate object to object values instead of casting to array, fixes h…#166

Merged
corpsee merged 1 commit into
php-censor:masterfrom
Caffe1neAdd1ct:master
Mar 15, 2018
Merged

Populate object to object values instead of casting to array, fixes h…#166
corpsee merged 1 commit into
php-censor:masterfrom
Caffe1neAdd1ct:master

Conversation

@Caffe1neAdd1ct

Copy link
Copy Markdown
Contributor

#164

Contribution type

*Bug fix

Description of change

Clicking rebuild now caused exception due to integer value not correctly cast when copying over build details to new build record (due to extracting details to array first causing string conversion).

$build->setTag($copyFrom->getTag());
$build->setCommitterEmail($copyFrom->getCommitterEmail());
$build->setCommitMessage($copyFrom->getCommitMessage());
$build->setExtra($copyFrom->getExtra());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  Avoid using static access to class '\PHPCensor\BuildFactory' in method 'createDuplicateBuild'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Leaving as not affecting functionality and not part of this fix.

@corpsee corpsee merged commit e7c4c4c into php-censor:master Mar 15, 2018
@corpsee

corpsee commented Mar 15, 2018

Copy link
Copy Markdown
Member

@Caffe1neAdd1ct Thank you! Merged. 👍

@corpsee corpsee added this to the 1.0 milestone Jun 19, 2018
@corpsee corpsee removed this from the Version 1.0.* (patch) milestone May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants