Skip to content

Unify the word for screenshot bytes ('content' versus 'data') #250

Description

@AlexSkrypnyk

Deferred from the codebase convergence work. Every fix here renames or reshapes a published symbol of this library, so it is a backward-compatibility break and was deliberately left out of the non-breaking follow-up.

Summary

The raw bytes of a screenshot are called content in one half of the codebase and data in the other.

Details

  • content - 8 sites, including the public saveScreenshotContent().
  • data - 5 sites, including the protected $lastScreenshotData property.

Both sides are published surface. saveScreenshotContent() is effectively part of the contract, and $lastScreenshotData is protected on a non-final class, so subclasses can depend on it - the in-repo ProfiledScreenshotContext test double writes to it directly, which demonstrates the extension point is real and in use.

content has the larger share and the more prominent member, so it is the likely canonical, but the decision needs to be deliberate because renaming the property breaks subclasses silently rather than loudly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions