Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24183

FieldType::isEmptyValue( $value ) should check $value type

    Details

      Description

      FieldType::isEmptyValue( SPIValue $value ) expects the SPIValue instance as returned by API. As the method signature is generic and default implementation can't hint the proper type for a concrete field type, that should then be checked by reusing exisisting acceptValue() template method checkValueType().

      Default implementation also compares the $value to null, which is not needed.

      Dedicated tests for the method should be added to the abstract unit test case and implemented for all field types.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Petar Spanja (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: