Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SF 8.0 with PHP8.4 : interface with properties? #62281

Open
@Nayte91

Description

@Nayte91

Description

Hello all,

I suppose that were discussed in internal since ages, but as SF8 has PHP8.4 as minimum version, have you considered moving some interfaces from methods toproperties?

Example

For example for a common User Entity that implements UserInterface & PasswordAuthenticatedUserInterface

  • replacegetRoles() bypublic array $roles { get; }
  • replacegetPassword() bypublic string $password { get; }

My 2 cents: I would not recommend this migration for every interfaced method in the world, but it makes sense for DTOs as you may want to push properties over methods in those objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp