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

Handle unknown class names in ClassUpdate #2271

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

m0nken
Copy link
Contributor

@m0nken m0nken commented May 5, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets

Adjust ClassUpdate to allow $this->classDefinition to be assigned with null. Otherwise the assignment with the result of
DataObject\ClassDefinition::getByName($className) may fail and the prepared null-check will not be reached.

@dpfaffenbauer
Copy link
Member

@m0nken please rebase to 3.0

Allow $this->classDefinition to be assigned with null. Otherwise the code in line 33 may break 
 (`$this->classDefinition = DataObject\ClassDefinition::getByName($className);`)
and line 36 cannot be reached.
@CLAassistant
Copy link

CLAassistant commented May 8, 2023

CLA assistant check
All committers have signed the CLA.

@m0nken m0nken changed the base branch from master to 3.0 May 8, 2023 09:50
@m0nken
Copy link
Contributor Author

m0nken commented May 8, 2023

@dpfaffenbauer I rebased to 3.0 but now the checks fail. The failing checks do not appear to be related to the changes within my commit, though. Could you retrigger the checks?

@dpfaffenbauer dpfaffenbauer merged commit 1423a40 into coreshop:3.0 May 10, 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.

3 participants