Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1710

Document upcoming signature changes in interfaces

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.15.0
    • Docs
    • None

    Description

      PHPC-1708 introduces return type information for final classes. In interfaces, we can't define return types in PHPC 1.x, as any code implementing the interface contract would no longer be valid. To be able to make this change in 2.0, users will have to update their implementations to already add the return type. Users can add return types to methods that originally don't declare them without causing signature mismatch errors starting with PHP 7.2.

      A separate ticket will track adding return types to interface methods.

      Attachments

        Activity

          People

            andreas.braun@mongodb.com Andreas Braun
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: