•  
      request #13436 PHP class names should be referenced by ::class when possible
    Infos
    #13436
    Thomas Gerbet (tgerbet)
    2019-06-07 12:03
    2019-05-29 08:52
    14550
    Details
    PHP class names should be referenced by ::class when possible
    __CLASS__, get_parent_class(), get_called_class(), get_class() and get_class($this) can be referenced by a ::class constant. The code base should use that. It brings consistency: the usage is the same than for other PHP class constants and the way to get a class name can be the same everywhere (__CLASS__ vs self::class and OtherClassName::class). It is also a bit faster for the PHP engine.
    Dev tools
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2019-06-07
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2019-06-07 12:03
    Closing, external plugins we maintain are not affected.

    • Status changed from Under review to Closed
    • Close date set to 2019-06-07