You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with 1.15, methods now declare types for their arguments. This will not
cause BC breaks unless you've passed a type that was incompatible with the type
previously documented in the PHPDoc comment. A list of changes can be found at
the bottom of this document.
Return types
Return types will be added in version 2.0. These types are documented in a
PHPDoc comment and will eventually become a declared return type. You can
prepare for this change (which will trigger a BC break in any class you may
extend) by adding the correct return type to your class at this time.
Internal classes
Internal classes (i.e. annotated with @internal) will become final where
possible in a future release. At the same time, we will add return types to
these internal classes. Note that internal classes are not covered by our
backward compatibility promise, and you should not instantiate such classes
directly.