Skip to content

ReflectionConstant in PHP 8.4 does not offer declaration file information #15723

Closed

Description

@janedbal

Description

When I spotted this new reflection class, I was hoping I could use it for detection of originated vendor package. But as I can see, there is no getFileName method. Is this due to some technical limitation or can that be added? Thank you

cc @iluuu1994

Activity

  1. iluuu1994 commented on Sep 3, 2024

    @iluuu1994
    Member

    Hi @janedbal. Yes, we don't currently have this information available at runtime. You can leave this open as a feature request.

  2. DanielEScherzer commented on Sep 12, 2024

    @DanielEScherzer
    Member

    Unfortunately my understanding is that it is too late to include this in 8.4 as a new feature, since we have already tagged the first release candidate, but I've sent a PR at #15847

  3. iluuu1994 commented on Sep 12, 2024

    @iluuu1994
    Member

    That doesn't sound right, RC1 is scheduled for September 26th. I think they are only tagged 2 days prior.

  4. DanielEScherzer commented on Sep 12, 2024

    @DanielEScherzer
    Member

    That doesn't sound right, RC1 is scheduled for September 26th. I think they are only tagged 2 days prior.

    Oh, I guess I misread the last tag - good to know that this can still be included

  5. added a commit that references this issue on Oct 25, 2024
  6. added a commit that references this issue on Oct 31, 2024
    f5e743a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions