Skip to content

Conversation

BlackbitDevs
Copy link
Contributor

With current code the reference between

if ($inheritanceEnabled && $fd->getFieldType() != 'calculatedValue') {

and

is only indirect. If one of the places gets changed, it will not work anymore.

This PR replaces this magic string with instanceof

Copy link

github-actions bot commented Dec 3, 2024

Review Checklist

  • Target branch (11.4 for bug fixes, others 11.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

Copy link

sonarqubecloud bot commented Dec 3, 2024

@ghost ghost added the Pimcore:ToDo label Dec 5, 2024
@alexz707 alexz707 changed the base branch from 11.4 to 11.5 December 17, 2024 11:30
@kingjia90 kingjia90 self-assigned this Aug 8, 2025
@kingjia90 kingjia90 added this to the 11.5.9 milestone Aug 8, 2025
Copy link

sonarqubecloud bot commented Aug 8, 2025

@kingjia90 kingjia90 merged commit 52e99cb into pimcore:11.5 Aug 8, 2025
19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants